diff options
author | Tarek Ziade <tarek@ziade.org> | 2011-05-25 21:46:09 (GMT) |
---|---|---|
committer | Tarek Ziade <tarek@ziade.org> | 2011-05-25 21:46:09 (GMT) |
commit | 5eb555990a5f507d417d0b37d9e4a88a3c161800 (patch) | |
tree | a746aaf667d0f06c4cb0b9b5d9d8de273fa2ef75 /Lib/packaging/tests/test_pypi_dist.py | |
parent | d2780aedce824867ed14bd9a2a5ef050ae0c8d30 (diff) | |
download | cpython-5eb555990a5f507d417d0b37d9e4a88a3c161800.zip cpython-5eb555990a5f507d417d0b37d9e4a88a3c161800.tar.gz cpython-5eb555990a5f507d417d0b37d9e4a88a3c161800.tar.bz2 |
Issue #12180: Fixed a few remaining errors in test_packaging when no threading.
Diffstat (limited to 'Lib/packaging/tests/test_pypi_dist.py')
-rw-r--r-- | Lib/packaging/tests/test_pypi_dist.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_pypi_dist.py b/Lib/packaging/tests/test_pypi_dist.py index b7f4e98..0c88c9b 100644 --- a/Lib/packaging/tests/test_pypi_dist.py +++ b/Lib/packaging/tests/test_pypi_dist.py @@ -7,12 +7,13 @@ from packaging.pypi.dist import (ReleaseInfo, ReleasesList, DistInfo, from packaging.pypi.errors import HashDoesNotMatch, UnsupportedHashName from packaging.tests import unittest -from packaging.tests.support import TempdirManager, requires_zlib +from packaging.tests.support import TempdirManager, requires_zlib, fake_dec try: import threading from packaging.tests.pypi_server import use_pypi_server except ImportError: - threading = use_pypi_server = None + threading = None + use_pypi_server = fake_dec def Dist(*args, **kwargs): |