[Python-checkins] cpython (3.4): Issue #20753: Skip PasswordProtectedSiteTestCase when Python is built without
berker.peksag
python-checkins at python.org
Sun Jun 29 14:56:22 CEST 2014
http://hg.python.org/cpython/rev/0e08ca451b34
changeset: 91463:0e08ca451b34
branch: 3.4
parent: 91461:8734e881c400
user: Berker Peksag <berker.peksag at gmail.com>
date: Sun Jun 29 15:54:56 2014 +0300
summary:
Issue #20753: Skip PasswordProtectedSiteTestCase when Python is built without threads.
files:
Lib/test/test_robotparser.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py
--- a/Lib/test/test_robotparser.py
+++ b/Lib/test/test_robotparser.py
@@ -4,8 +4,11 @@
from urllib.error import URLError, HTTPError
from urllib.request import urlopen
from test import support
-import threading
from http.server import BaseHTTPRequestHandler, HTTPServer
+try:
+ import threading
+except ImportError:
+ threading = None
class RobotTestCase(unittest.TestCase):
@@ -259,6 +262,7 @@
pass
+ at unittest.skipUnless(threading, 'threading required for this test')
class PasswordProtectedSiteTestCase(unittest.TestCase):
def setUp(self):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list