0
0
mirror of https://github.com/python/cpython.git synced 2024-11-21 12:59:38 +01:00

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