mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Closes #27781: Removes special cases for the experimental aspect of PEP 529
This commit is contained in:
parent
f570d0f117
commit
78057b4159
4 changed files with 5 additions and 24 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue