Fix NNTP when there's a ".netrc" file
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 @@
# TODO:
# - test the `file` arg to more commands
# - test error conditions
+# - test auth and `usenetrc`
class NetworkedNNTPTestsMixin:
@@ -255,7 +256,7 @@
# 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