File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -643,12 +643,14 @@ def test_Py_CompileString(self):
643
643
expected = compile (code , "<string>" , "exec" )
644
644
self .assertEqual (result .co_consts , expected .co_consts )
645
645
646
- def test_export_frozenmain (self ):
647
- # bpo-44133: Ensure that the "Py_FrozenMain" symbol is exported
648
- # by the Python (directly by the binary, or via by the Python dynamic
649
- # library).
646
+ def test_export_symbols (self ):
647
+ # bpo-44133: Ensure that the "Py_FrozenMain" and
648
+ # "PyThread_get_thread_native_id" symbols are exported by the Python
649
+ # (directly by the binary, or via by the Python dynamic library).
650
650
ctypes = import_helper .import_module ('ctypes' )
651
- self .assertTrue (hasattr (ctypes .pythonapi , 'Py_FrozenMain' ))
651
+ for name in ('Py_FrozenMain' , 'PyThread_get_thread_native_id' ):
652
+ with self .subTest (name = name ):
653
+ self .assertTrue (hasattr (ctypes .pythonapi , name ))
652
654
653
655
654
656
class TestPendingCalls (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments