MCPcopy Index your code
hub / github.com/python/cpython / test_disallow_instantiation

Method test_disallow_instantiation

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

Source from the content-addressed store, hash-verified

2955
2956 @cpython_only
2957 def test_disallow_instantiation(self):
2958 # Ensure that the type disallows instantiation (bpo-43916)
2959 check_disallow_instantiation(self, re.Match)
2960 check_disallow_instantiation(self, re.Pattern)
2961 pat = re.compile("")
2962 check_disallow_instantiation(self, type(pat.scanner("")))
2963
2964 @cpython_only
2965 def test_case_helpers(self):

Callers

nothing calls this directly

Calls 2

compileMethod · 0.45

Tested by

no test coverage detected