mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
gh-126223: Propagate unicode errors in _interpreters.create()
(#126224)
Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
8c22eba877
commit
01415213d7
3 changed files with 10 additions and 1 deletions
|
@ -54,6 +54,9 @@ class CreateTests(TestBase):
|
|||
self.assertIsInstance(interp, interpreters.Interpreter)
|
||||
self.assertIn(interp, interpreters.list_all())
|
||||
|
||||
# GH-126221: Passing an invalid Unicode character used to cause a SystemError
|
||||
self.assertRaises(UnicodeEncodeError, _interpreters.create, '\udc80')
|
||||
|
||||
def test_in_thread(self):
|
||||
lock = threading.Lock()
|
||||
interp = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue