Skip to content

Commit 88ff02e

Browse files
[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 76f3c04) Co-authored-by: T. Wouters <thomas@python.org>
1 parent bce7791 commit 88ff02e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: Lib/test/test_netrc.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import netrc, os, unittest, sys, textwrap
2-
from test.support import os_helper, run_unittest
2+
from test.support import os_helper
33

44
try:
55
import pwd
@@ -308,8 +308,6 @@ def test_security(self):
308308
self.assertEqual(nrc.hosts['foo.domain.com'],
309309
('anonymous', '', 'pass'))
310310

311-
def test_main():
312-
return run_unittest(NetrcTestCase)
313311

314312
if __name__ == "__main__":
315-
test_main()
313+
unittest.main()

0 commit comments

Comments
 (0)