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

Method test_deprecated__version__

Lib/test/test_argparse.py:7767–7773  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7765
7766class TestModule(unittest.TestCase):
7767 def test_deprecated__version__(self):
7768 with self.assertWarnsRegex(
7769 DeprecationWarning,
7770 "'__version__' is deprecated and slated for removal in Python 3.20",
7771 ) as cm:
7772 getattr(argparse, "__version__")
7773 self.assertEqual(cm.filename, __file__)
7774
7775
7776def tearDownModule():

Callers

nothing calls this directly

Calls 2

assertWarnsRegexMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected