diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-29 16:19:50 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-29 16:19:50 (GMT) |
commit | a5785b1524074656f0a0ec64e5e5cdb27aa3a356 (patch) | |
tree | 01583b47f69a08b1d11e59285b9a64ba95cfd7e4 /Lib/test/test_nntplib.py | |
parent | 2620d81b7fa0a915e03e74eb82f80e029f7081a1 (diff) | |
download | cpython-a5785b1524074656f0a0ec64e5e5cdb27aa3a356.zip cpython-a5785b1524074656f0a0ec64e5e5cdb27aa3a356.tar.gz cpython-a5785b1524074656f0a0ec64e5e5cdb27aa3a356.tar.bz2 |
Fix NNTP when there's a ".netrc" file
Diffstat (limited to 'Lib/test/test_nntplib.py')
-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 85334bb..dd100ef 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py @@ -12,6 +12,7 @@ TIMEOUT = 30 # TODO: # - test the `file` arg to more commands # - test error conditions +# - test auth and `usenetrc` class NetworkedNNTPTestsMixin: @@ -255,7 +256,7 @@ class MockedNNTPTestsMixin: # isn't seekable. file = io.BufferedRWPair(self.sio, self.sio) kwargs.setdefault('usenetrc', False) - self.server = nntplib._NNTPBase(file, *args, **kwargs) + self.server = nntplib._NNTPBase(file, 'test.server', *args, **kwargs) return self.server |