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

Method test_disallow_instantiation

Lib/test/test_csv.py:1694–1698  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1692
1693 @support.cpython_only
1694 def test_disallow_instantiation(self):
1695 _csv = import_helper.import_module("_csv")
1696 for tp in _csv.Reader, _csv.Writer:
1697 with self.subTest(tp=tp):
1698 check_disallow_instantiation(self, tp)
1699
1700
1701class TestModule(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

import_moduleMethod · 0.45
subTestMethod · 0.45

Tested by

no test coverage detected