diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-10-06 08:08:05 -0700 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-10-06 08:08:05 -0700 |
commit | 0b7fee3c974d89b7f7f51fef9a1893e25ed980da (patch) | |
tree | 5fd46ace79f29233ad9d9f0cefcefdbb4af608e0 /tests | |
parent | d1a6f1eaacbc1a262d54b067d9b787fce24748ae (diff) | |
download | pexpect-git-0b7fee3c974d89b7f7f51fef9a1893e25ed980da.tar.gz |
disable max canon tests, retain file contents
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_maxcanon.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_maxcanon.py b/tests/test_maxcanon.py index 772a3b7..cd48cbc 100644 --- a/tests/test_maxcanon.py +++ b/tests/test_maxcanon.py @@ -27,6 +27,9 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase): implement this bit, and acts as if it is always set." Although these tests ensure it is enabled, this is a non-op for Linux. + More unsettling in regards to Linux, Fedora and Debian have different + behaviours. For this reason, **these test has been disabled entirely**. + FreeBSD supports neither, and instead uses a fraction (1/5) of the tty speed which is always 9600. Therefor, the maximum limited input line length is 9600 / 5 = 1920. @@ -63,7 +66,7 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase): sys.platform.lower().startswith('freebsd'), reason='os.write to BLOCK indefinitely on FreeBSD in this case' ) - def test_under_max_canon(self): + def disabled_under_max_canon(self): " BEL is not sent by terminal driver at maximum bytes - 1. " # given, child = pexpect.spawn('bash', echo=self.echo, timeout=5) @@ -101,7 +104,7 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase): sys.platform.lower().startswith('freebsd'), reason='os.write to BLOCK indefinitely on FreeBSD in this case' ) - def test_beyond_max_icanon(self): + def disabled_beyond_max_icanon(self): " a single BEL is sent when maximum bytes is reached. " # given, child = pexpect.spawn('bash', echo=self.echo, timeout=5) @@ -140,7 +143,7 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase): sys.platform.lower().startswith('freebsd'), reason='os.write to BLOCK indefinitely on FreeBSD in this case' ) - def test_max_no_icanon(self): + def disabled_max_no_icanon(self): " may exceed maximum input bytes if canonical mode is disabled. " # given, child = pexpect.spawn('bash', echo=self.echo, timeout=5) |