diff options
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) |
commit | 4460abea64b0f2b59d311871eca24f8a09b3cee5 (patch) | |
tree | aeecb9c8d884f5073f86f1902e44a8944d47d4d5 /Lib/packaging/tests | |
parent | 54dbfbd675076da8cc5518fdfe0d86a960f8d75a (diff) | |
download | cpython-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.py | 8 |
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") |