Skip to content

Commit

Permalink
pythongh-89392: Remove test_main() in test_netrc (pythonGH-108860)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Sep 4, 2023
1 parent 5a79d2a commit 76f3c04
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 76f3c04

Please sign in to comment.