Issue #12180: Fixed a few remaining errors in test_packaging when no threading.

This commit is contained in:
Tarek Ziade 2011-05-25 23:46:09 +02:00
parent d2780aedce
commit 5eb555990a
5 changed files with 39 additions and 7 deletions

View file

@ -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):