Skip to content

Commit

Permalink
[3.12] pythongh-89392: Remove test_main() in test_netrc (pythonGH-108860
Browse files Browse the repository at this point in the history
) (python#108872)

[3.12] pythongh-89392: Remove test_main() in test_netrc (pythonGH-108860).
(cherry picked from commit 76f3c04)

Co-authored-by: T. Wouters <[email protected]>
  • Loading branch information
serhiy-storchaka and Yhg1s authored Sep 4, 2023
1 parent bce7791 commit 88ff02e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Lib/test/test_netrc.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -308,8 +308,6 @@ def test_security(self):
self.assertEqual(nrc.hosts['foo.domain.com'],
('anonymous', '', 'pass'))

def test_main():
return run_unittest(NetrcTestCase)

if __name__ == "__main__":
test_main()
unittest.main()

0 comments on commit 88ff02e

Please sign in to comment.