FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TESTS.md: Remove Python 2.7 references from TESTS.md (#1822) · ioload/python@8bec865 · GitHub

Repository navigation

Commit 8bec865

Browse files
authored andcommitted
TESTS.md: Remove Python 2.7 references from TESTS.md (exercism#1822)
1 parent a1581af commit 8bec865

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

‎docs/TESTS.md‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ We recommend you install [pytest](http://pytest.org/en/latest/) and
44
[pytest-cache](http://pythonhosted.org/pytest-cache/). `pytest` is a testing
55
tool that will give you more flexibility over running your unit tests.
66

7-
If you want to install `pytest` for Python 2, then use `pip`.
8-
9-
```bash
10-
pip install pytest pytest-cache
11-
```
12-
If you instead want the version of `pytest` for Python 3, then use `pip3`.
7+
To install `pytest`, run the following command:
138

149
```bash
1510
pip3 install pytest pytest-cache
@@ -19,23 +14,12 @@ If you get a `command not found` response from your system, you can find a
1914
tutorial on how to install `pip`
2015
[here](https://pip.pypa.io/en/stable/installing/).
2116

22-
**Note:** Whichever version of `pytest` you install last will be the default one used whenever `pytest` is executed, regardless of whether you have installed both versions.
23-
2417
If you want to check what the default version of `pytest` being used is, run the following:
2518

2619
```bash
2720
pytest --version
2821
```
2922

30-
If you have either version of `pytest` installed and you want to specifically run one of the versions, you can run that version by using `python` with the `-m` flag.
31-
32-
For example, you could run the Python 3 version of pytest like so:
33-
34-
```bash
35-
$ python3 -m pytest --version
36-
This is pytest version 3.2.3, imported from /usr/local/lib/python3.5/dist-packages/pytest.py
37-
```
38-
3923
If you choose not to install `pytest`, you can still run tests individually and
4024
skip the rest of this tutorial:
4125

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL