Skip to content

Commit bca8454

Browse files
committed
Fixed unit test bug on Windows
- The python-forked module doesn't work on Windows
1 parent 8eebaae commit bca8454

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ py.test -n4
270270
```
271271
where `4` should be replaced by the number of parallel threads you wish to run for testing.
272272

273-
If you have the `pytest-forked` pytest plugin for running tests in isolated formed processes, you
274-
can speed things up even further:
273+
If you have the `pytest-forked` pytest plugin (not avilable on Windows) for running tests in isolated formed processes,
274+
you can speed things up even further:
275275

276276
```shell
277277
py.test -nauto --forked

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
INSTALL_REQUIRES += ['subprocess32']
7878

7979
# unittest.mock was added in Python 3.3. mock is a backport of unittest.mock to all versions of Python
80-
TESTS_REQUIRE = ['mock', 'pytest', 'pytest-xdist', 'pytest-forked']
80+
TESTS_REQUIRE = ['mock', 'pytest', 'pytest-xdist']
8181
DOCS_REQUIRE = ['sphinx', 'sphinx_rtd_theme', 'pyparsing', 'pyperclip', 'six']
8282

8383
setup(

tox.ini

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ deps =
3434
pyreadline
3535
pytest
3636
pytest-cov
37-
pytest-forked
3837
pytest-xdist
3938
six
4039
subprocess32
4140
commands =
42-
py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing --forked
41+
py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing
4342
codecov
4443

4544
[testenv:py34]
@@ -71,10 +70,9 @@ deps =
7170
pyperclip
7271
pyreadline
7372
pytest
74-
pytest-forked
7573
pytest-xdist
7674
six
77-
commands = py.test -v -n2 --forked
75+
commands = py.test -v -n2
7876

7977
[testenv:py36]
8078
deps =
@@ -98,10 +96,9 @@ deps =
9896
pyperclip
9997
pyreadline
10098
pytest
101-
pytest-forked
10299
pytest-xdist
103100
six
104-
commands = py.test -v -n2 --forked
101+
commands = py.test -v -n2
105102

106103
[testenv:py37]
107104
deps =

0 commit comments

Comments
 (0)