Skip to content

Commit

Permalink
Finally clean up that error message difference
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Feb 2, 2014
1 parent e52a40b commit 0858892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_run_no_such_program(self):
with self.assertRaises(Failure) as cm:
run(["there-is-really-no-such-program"])
# Linux says "[Errno 2] No such file or directory"
# Windows says "[Errno 2] The system cannot find the file specified"
should_start_with = "could not run ['there-is-really-no-such-program']: [Errno 2]"
# Windows says "[Error 2] The system cannot find the file specified"
should_start_with = "could not run ['there-is-really-no-such-program']: [Err"
self.assertTrue(
str(cm.exception).startswith(should_start_with),
'\n%r does not start with\n%r' % (str(cm.exception),
Expand Down

0 comments on commit 0858892

Please sign in to comment.