[Python-checkins] r85113 - python/branches/py3k/Lib/test/test_nntplib.py

antoine.pitrou python-checkins at python.org
Wed Sep 29 18:08:29 CEST 2010


Author: antoine.pitrou
Date: Wed Sep 29 18:08:29 2010
New Revision: 85113

Log:
Disable the usenetrc option when testing nntplib



Modified:
   python/branches/py3k/Lib/test/test_nntplib.py

Modified: python/branches/py3k/Lib/test/test_nntplib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_nntplib.py	(original)
+++ python/branches/py3k/Lib/test/test_nntplib.py	Wed Sep 29 18:08:29 2010
@@ -164,7 +164,7 @@
     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 @@
         # 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
 


More information about the Python-checkins mailing list