forked from pool/python-typing_extensions
osc copypac from project:home:mcepl:work package:python-typing_extensions revision:3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
98f73ae30a
commit
26d7a8d376
29
fix_tests.patch
Normal file
29
fix_tests.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
--- a/src_py3/test_typing_extensions.py
|
||||
+++ b/src_py3/test_typing_extensions.py
|
||||
@@ -31,7 +31,7 @@ except ImportError:
|
||||
|
||||
# We assume Python versions *below* 3.5.0 will have the most
|
||||
# up-to-date version of the typing module installed. Since
|
||||
-# the typing module isn't a part of the standard library in older
|
||||
+# the typing module isn't a part of the standard library in older
|
||||
# versions of Python, those users are likely to have a reasonably
|
||||
# modern version of `typing` installed from PyPi.
|
||||
TYPING_LATEST = sys.version_info[:3] < (3, 5, 0)
|
||||
@@ -288,7 +288,7 @@ else:
|
||||
AwaitableWrapper = AsyncIteratorWrapper = ACM = object
|
||||
|
||||
PY36_TESTS = """
|
||||
-from test import ann_module, ann_module2, ann_module3
|
||||
+import ann_module, ann_module2, ann_module3
|
||||
from typing_extensions import AsyncContextManager
|
||||
from typing import NamedTuple
|
||||
|
||||
@@ -1313,7 +1313,7 @@ class AllTests(BaseTestCase):
|
||||
file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
||||
'typing_extensions.py')
|
||||
try:
|
||||
- subprocess.check_output('python -OO {}'.format(file_path),
|
||||
+ subprocess.check_output('python3 -OO {}'.format(file_path),
|
||||
stderr=subprocess.STDOUT,
|
||||
shell=True)
|
||||
except subprocess.CalledProcessError:
|
Reference in New Issue
Block a user