summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_pypi_xmlrpc.py
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-05-22 22:41:27 (GMT)
committerTarek Ziade <tarek@ziade.org>2011-05-22 22:41:27 (GMT)
commite5f9cbdaae323e801862e8780826386132b58326 (patch)
tree9d1a02a8409fd552644a4d8eea26981fccd90f82 /Lib/packaging/tests/test_pypi_xmlrpc.py
parenta3c1545a2e6ff890b014a405e2511581b557772e (diff)
downloadcpython-e5f9cbdaae323e801862e8780826386132b58326.zip
cpython-e5f9cbdaae323e801862e8780826386132b58326.tar.gz
cpython-e5f9cbdaae323e801862e8780826386132b58326.tar.bz2
skip more tests in packaging if threading is not supported
Diffstat (limited to 'Lib/packaging/tests/test_pypi_xmlrpc.py')
-rw-r--r--Lib/packaging/tests/test_pypi_xmlrpc.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/packaging/tests/test_pypi_xmlrpc.py b/Lib/packaging/tests/test_pypi_xmlrpc.py
index 5c67db9..682bd7b 100644
--- a/Lib/packaging/tests/test_pypi_xmlrpc.py
+++ b/Lib/packaging/tests/test_pypi_xmlrpc.py
@@ -9,7 +9,12 @@ try:
from packaging.tests.pypi_server import use_xmlrpc_server
except ImportError:
threading = None
- use_xmlrpc_server = None
+ def use_xmlrpc_server():
+ def _use(func):
+ def __use(*args, **kw):
+ return func(*args, **kw)
+ return __use
+ return _use
@unittest.skipIf(threading is None, "Needs threading")