forked from pool/python-typing_extensions
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
![]() |
--- 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:
|