summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-11 22:15:41 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-11 22:15:41 (GMT)
commit4460abea64b0f2b59d311871eca24f8a09b3cee5 (patch)
treeaeecb9c8d884f5073f86f1902e44a8944d47d4d5 /Lib/packaging/tests
parent54dbfbd675076da8cc5518fdfe0d86a960f8d75a (diff)
downloadcpython-4460abea64b0f2b59d311871eca24f8a09b3cee5.zip
cpython-4460abea64b0f2b59d311871eca24f8a09b3cee5.tar.gz
cpython-4460abea64b0f2b59d311871eca24f8a09b3cee5.tar.bz2
Use our existing drop-in, no-op decorator instead of redefining it.
Patch by Francisco Martin Brugue.
Diffstat (limited to 'Lib/packaging/tests')
-rw-r--r--Lib/packaging/tests/test_pypi_xmlrpc.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/packaging/tests/test_pypi_xmlrpc.py b/Lib/packaging/tests/test_pypi_xmlrpc.py
index 682bd7b..b7b382d 100644
--- a/Lib/packaging/tests/test_pypi_xmlrpc.py
+++ b/Lib/packaging/tests/test_pypi_xmlrpc.py
@@ -3,18 +3,14 @@
from packaging.pypi.xmlrpc import Client, InvalidSearchField, ProjectNotFound
from packaging.tests import unittest
+from packaging.tests.support import fake_dec
try:
import threading
from packaging.tests.pypi_server import use_xmlrpc_server
except ImportError:
threading = None
- def use_xmlrpc_server():
- def _use(func):
- def __use(*args, **kw):
- return func(*args, **kw)
- return __use
- return _use
+ use_xmlrpc_server = fake_dec
@unittest.skipIf(threading is None, "Needs threading")