diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-09-04 19:13:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 19:13:02 (GMT) |
commit | 88ff02e3c5054fd4d356526a5b1f15f5bc4d65b3 (patch) | |
tree | 7eaed185f1272146e66042f7b09ea085c4f4deeb | |
parent | bce77915b68e4da2d313d17391a009bc113a023c (diff) | |
download | cpython-88ff02e3c5054fd4d356526a5b1f15f5bc4d65b3.zip cpython-88ff02e3c5054fd4d356526a5b1f15f5bc4d65b3.tar.gz cpython-88ff02e3c5054fd4d356526a5b1f15f5bc4d65b3.tar.bz2 |
[3.12] gh-89392: Remove test_main() in test_netrc (GH-108860) (#108872)
[3.12] gh-89392: Remove test_main() in test_netrc (GH-108860).
(cherry picked from commit 76f3c043b6c5971d5a13fc6decf87a80ddf7ef95)
Co-authored-by: T. Wouters <thomas@python.org>
-rw-r--r-- | Lib/test/test_netrc.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_netrc.py b/Lib/test/test_netrc.py index b38cb32..81e11a2 100644 --- a/Lib/test/test_netrc.py +++ b/Lib/test/test_netrc.py @@ -1,5 +1,5 @@ import netrc, os, unittest, sys, textwrap -from test.support import os_helper, run_unittest +from test.support import os_helper try: import pwd @@ -308,8 +308,6 @@ class NetrcTestCase(unittest.TestCase): self.assertEqual(nrc.hosts['foo.domain.com'], ('anonymous', '', 'pass')) -def test_main(): - return run_unittest(NetrcTestCase) if __name__ == "__main__": - test_main() + unittest.main() |