We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d8bbcd commit cf184f3Copy full SHA for cf184f3
tests/test_modules.py
@@ -108,10 +108,6 @@ def test_def_submodule_failures():
108
sm.__name__ = malformed_utf8
109
try:
110
with pytest.raises(SystemError):
111
- # Seen with Python 3.9: SystemError: nameless module
112
- # But we do not want to exercise the internals of PyModule_GetName(), which could
113
- # change in future versions of Python, but a bad __name__ is very likely to cause
114
- # some kind of failure indefinitely.
115
m.def_submodule(sm, b"SubSubModuleName")
116
finally:
117
# Clean up to ensure nothing gets upset by a module with an invalid __name__.
0 commit comments