diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-17 14:51:41 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-17 14:51:41 +0000 |
commit | 49ec50e834ad4af3043e655c4010ddb2fe57f13a (patch) | |
tree | f04139cca5a52bc5276ed724139986955d81b798 /Lib/test/test_netrc.py | |
parent | ef887fabd96f62e9a265e2d597e2a155cf7cfd8b (diff) | |
download | cpython-49ec50e834ad4af3043e655c4010ddb2fe57f13a.tar.gz |
Actually run these tests from regrtest.py.
There was no test_main() and the main body was protected
by if __name__ == '__main__' so the test didn't happen
on import either.
Diffstat (limited to 'Lib/test/test_netrc.py')
-rw-r--r-- | Lib/test/test_netrc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_netrc.py b/Lib/test/test_netrc.py index 15e7e68134..8f4c825b26 100644 --- a/Lib/test/test_netrc.py +++ b/Lib/test/test_netrc.py @@ -38,6 +38,8 @@ class NetrcTestCase(unittest.TestCase): self.assert_(self.netrc.hosts['foo'] == ('log1', 'acct1', 'pass1')) self.assert_(self.netrc.hosts['default'] == ('log2', None, 'pass2')) +def test_main(): + test_support.run_unittest(NetrcTestCase) if __name__ == "__main__": - test_support.run_unittest(NetrcTestCase) + test_main() |