(self)
| 7765 | |
| 7766 | class 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 | |
| 7776 | def tearDownModule(): |
nothing calls this directly
no test coverage detected