MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_disallow_instantiation

Method test_disallow_instantiation

Lib/test/test_re.py:2944–2949  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2942
2943 @cpython_only
2944 def test_disallow_instantiation(self):
2945 # Ensure that the type disallows instantiation (bpo-43916)
2946 check_disallow_instantiation(self, re.Match)
2947 check_disallow_instantiation(self, re.Pattern)
2948 pat = re.compile("")
2949 check_disallow_instantiation(self, type(pat.scanner("")))
2950
2951 @unittest.expectedFailure # TODO: RUSTPYTHON
2952 def test_deprecated_modules(self):

Callers

nothing calls this directly

Calls 3

scannerMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected