diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-11-07 03:35:08 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-11-07 03:35:08 (GMT) |
commit | 78057b41591629aa676d8f128da8ec6c65ffaeb5 (patch) | |
tree | 21ca0db7ee2806a6ecd87227f20320c2edc31e87 /Lib | |
parent | f570d0f117e23c2be982c7db910309d52b0496aa (diff) | |
download | cpython-78057b41591629aa676d8f128da8ec6c65ffaeb5.zip cpython-78057b41591629aa676d8f128da8ec6c65ffaeb5.tar.gz cpython-78057b41591629aa676d8f128da8ec6c65ffaeb5.tar.bz2 |
Closes #27781: Removes special cases for the experimental aspect of PEP 529
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 638244f..628c61e 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -2860,13 +2860,8 @@ class OSErrorTests(unittest.TestCase): func(name, *func_args) except OSError as err: self.assertIs(err.filename, name, str(func)) - except RuntimeError as err: - if sys.platform != 'win32': - raise - - # issue27781: undecodable bytes currently raise RuntimeError - # by 3.6.0b4 this will become UnicodeDecodeError or nothing - self.assertIsInstance(err.__context__, UnicodeDecodeError) + except UnicodeDecodeError: + pass else: self.fail("No exception thrown by {}".format(func)) |