diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-10-31 01:12:55 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-10-31 01:12:55 +0100 |
commit | bd54f0eb3aaef0ebf53cdc98bb16979e0add7b08 (patch) | |
tree | d562b61269b139b0f759b3669990065d963e1861 /Lib/test/test_os.py | |
parent | f69055efba0019ecdccfbd6497361f4d7755c0d6 (diff) | |
download | cpython-git-bd54f0eb3aaef0ebf53cdc98bb16979e0add7b08.tar.gz |
Issue #15478: Fix test_os on FreeBSD
Calling OS functions can fail with errors other than FileNotFoundError: a
FreeBSD buildbot fails for example with a PermissionError.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 0d1f60a4f3..a4cf60fed4 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -2112,7 +2112,7 @@ class OSErrorTests(unittest.TestCase): for name in self.filenames: try: func(name, *func_args) - except FileNotFoundError as err: + except OSError as err: self.assertIs(err.filename, name) else: self.fail("No exception thrown by {}".format(func)) |