Closes #27781: Removes special cases for the experimental aspect of PEP 529

This commit is contained in:
Steve Dower 2016-11-06 19:35:08 -08:00
parent f570d0f117
commit 78057b4159
4 changed files with 5 additions and 24 deletions

View file

@ -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))