summaryrefslogtreecommitdiff
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-11-06 19:35:08 -0800
committerSteve Dower <steve.dower@microsoft.com>2016-11-06 19:35:08 -0800
commit05074c5eba7ab5e023f3bc92528e18a8fecab2c4 (patch)
tree093daa0e96681d3237ba55151d0ba8d973847de8 /Lib/test/test_os.py
parent566dfe9e6cf0d679d7f62710444fa263cb7fb7d3 (diff)
downloadcpython-05074c5eba7ab5e023f3bc92528e18a8fecab2c4.tar.gz
Closes #27781: Removes special cases for the experimental aspect of PEP 529
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 638244f04a..628c61e591 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))