Skip to content

Commit 124768e

Browse files
committed
Cleanup lingering test changes
1 parent 9e42dbd commit 124768e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4
-28974
lines changed

.flake8-tests

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ ignore =
1515
E701,
1616
E704,
1717
F811,
18-
# Included to allow sys.version_info hack
19-
E402,
2018
# irrelevant plugins
2119
B3,
2220
DW12

typing_extensions/README.md

+4-29
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,8 @@ issues when mixing the differing implementations of modified classes.
5959

6060
## Running tests
6161

62-
### Python 2 tests
62+
To run tests, navigate into the appropriate source directory and run
63+
`test_typing_extensions.py`. You will also need to install the latest
64+
version of `typing` if you are using a version of Python that does not
65+
include `typing` as a part of the standard library.
6366

64-
To test Python 2, you should:
65-
66-
1. Install the latest version of typing
67-
2. Navigate into `src_py2` and run `test_typing_extensions.py`
68-
69-
### Python 3 tests
70-
71-
Similarly, to test Python 3, you can:
72-
73-
1. Install the latest version of typing (for Python 3.4 or under)
74-
2. Navigate into `src_py3` and run `test_typing_extensions.py`
75-
76-
However, you would need to repeat this test for each version of Python 3
77-
that has been released since Python 3.5.0 for full coverage.
78-
79-
Since installing 7+ different versions of Python 3 is an onerous requirement,
80-
this module provides a second way of running tests that requires you to only
81-
have the latest version of Python 3 installed on your system:
82-
83-
- Run `py -3 run_tests.py` (for Windows)
84-
- Run `python3 run_tests.py` (for Linux)
85-
86-
The `run_tests.py` file will essentially "modify" the standard library by
87-
changing `PYTHONPATH` to point to individual folders in the `test_data` repo.
88-
89-
Each individual folder contains a snapshot of the source code for the
90-
`collections`, `typing,` and `abc` modules for that given release, letting us
91-
test `typing` against those particular implementations.

typing_extensions/run_tests.py

-100
This file was deleted.

typing_extensions/src_py3/test_typing_extensions.py

-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
import sys
2-
3-
# Override version info
4-
#ORIGINAL_VERSION = sys.version_info
5-
#if len(sys.argv) >= 2 and sys.argv[-1].startswith("PYVERSION"):
6-
# PYTHON_VERSION = tuple(map(int, sys.argv[-1].split('.')[1:]))
7-
# sys.version_info = PYTHON_VERSION
8-
# OVERRIDING_VERSION = True
9-
#else:
10-
# PYTHON_VERSION = ORIGINAL_VERSION
11-
# OVERRIDING_VERSION = False
12-
132
import os
143
import abc
154
import contextlib

0 commit comments

Comments
 (0)