gh-89392: Remove test_main() in test_netrc (GH-108860)

This commit is contained in:
Serhiy Storchaka 2023-09-04 12:41:13 +03:00 committed by GitHub
parent 5a79d2ae57
commit 76f3c043b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ 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()