mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #12180: Fixed a few remaining errors in test_packaging when no threading.
This commit is contained in:
parent
d2780aedce
commit
5eb555990a
5 changed files with 39 additions and 7 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue