Skip to content

Commit

Permalink
resolve travis environment reference and assertRaises
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jul 20, 2014
1 parent 95dbd49 commit bc2f43f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def test_exception_tb(self):
assert False, "Should have raised an exception."


if os.environ.get('TRAVIS', None) is not None:
if os.environ.get('TRAVIS', None) != 'true':
# Travis-CI demonstrates unexpected behavior.

class TestCaseCanon(PexpectTestCase.PexpectTestCase):
Expand Down Expand Up @@ -412,7 +412,7 @@ def test_under_max_canon(self):
child.expect_exact('_' * send_bytes)

# BEL is not found,
with self.assertRaises(pexpect.TIMEOUT, timeout=1):
with self.assertRaises(pexpect.TIMEOUT):
child.expect_exact('\a')

# cleanup,
Expand All @@ -436,7 +436,7 @@ def test_at_max_icanon(self):
child.expect_exact('\a')

# verify, no more additional BELs expected
with self.assertRaises(pexpect.TIMEOUT, timeout=1):
with self.assertRaises(pexpect.TIMEOUT):
child.expect_exact('\a')

# exercise, we must now backspace to send CR.
Expand Down

0 comments on commit bc2f43f

Please sign in to comment.