summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-04 19:13:02 (GMT)
committerGitHub <noreply@github.com>2023-09-04 19:13:02 (GMT)
commit88ff02e3c5054fd4d356526a5b1f15f5bc4d65b3 (patch)
tree7eaed185f1272146e66042f7b09ea085c4f4deeb
parentbce77915b68e4da2d313d17391a009bc113a023c (diff)
downloadcpython-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.py6
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()