Skip to content

Commit

Permalink
Fix a test that does not pass when stdin is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ymattw committed Jan 16, 2016
1 parent 927820d commit bd099f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_cdiff.py
Expand Up @@ -753,7 +753,9 @@ def test_read_diff_neg(self):
os.chdir(self._non_ws)
ret = cdiff.main()
os.chdir(self._cwd)
self.assertNotEqual(ret, 0)
# Travis now runs tests with stdin closed
if sys.stdin.isatty():
self.assertNotEqual(ret, 0)

def test_read_log(self):
sys.argv = [sys.argv[0], '--log']
Expand Down

0 comments on commit bd099f3

Please sign in to comment.