diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-29 16:08:29 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-29 16:08:29 (GMT) |
commit | 2620d81b7fa0a915e03e74eb82f80e029f7081a1 (patch) | |
tree | 92d765ee7777838b5b336e98080b3e8183e6b471 | |
parent | 69ab95105f5105b8337c757346c899d6c7e7d9bb (diff) | |
download | cpython-2620d81b7fa0a915e03e74eb82f80e029f7081a1.zip cpython-2620d81b7fa0a915e03e74eb82f80e029f7081a1.tar.gz cpython-2620d81b7fa0a915e03e74eb82f80e029f7081a1.tar.bz2 |
Disable the usenetrc option when testing nntplib
-rw-r--r-- | Lib/test/test_nntplib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index 512bcd5..85334bb 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py @@ -164,7 +164,7 @@ class NetworkedNNTPTests(NetworkedNNTPTestsMixin, unittest.TestCase): def setUp(self): support.requires("network") with support.transient_internet(self.NNTP_HOST): - self.server = NNTP(self.NNTP_HOST, timeout=TIMEOUT) + self.server = NNTP(self.NNTP_HOST, timeout=TIMEOUT, usenetrc=False) def tearDown(self): if self.server is not None: @@ -254,6 +254,7 @@ class MockedNNTPTestsMixin: # Using BufferedRWPair instead of BufferedRandom ensures the file # isn't seekable. file = io.BufferedRWPair(self.sio, self.sio) + kwargs.setdefault('usenetrc', False) self.server = nntplib._NNTPBase(file, *args, **kwargs) return self.server |