diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-02 19:40:13 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-02 19:40:13 -0500 |
commit | bca845494dcc91cab87c2d7af4b5513a4893715b (patch) | |
tree | 5672d2c25ee1fadaee332ee208e3f0770caebcb0 | |
parent | 8eebaae9328aa89d3c86a382dcd9aafea7eb3728 (diff) | |
download | cmd2-git-bca845494dcc91cab87c2d7af4b5513a4893715b.tar.gz |
Fixed unit test bug on Windows
- The python-forked module doesn't work on Windows
-rw-r--r-- | CONTRIBUTING.md | 4 | ||||
-rwxr-xr-x | setup.py | 2 | ||||
-rw-r--r-- | tox.ini | 9 |
3 files changed, 6 insertions, 9 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 52387946..c6713750 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -270,8 +270,8 @@ py.test -n4 ``` where `4` should be replaced by the number of parallel threads you wish to run for testing. -If you have the `pytest-forked` pytest plugin for running tests in isolated formed processes, you -can speed things up even further: +If you have the `pytest-forked` pytest plugin (not avilable on Windows) for running tests in isolated formed processes, +you can speed things up even further: ```shell py.test -nauto --forked @@ -77,7 +77,7 @@ if sys.version_info < (3, 0): INSTALL_REQUIRES += ['subprocess32'] # unittest.mock was added in Python 3.3. mock is a backport of unittest.mock to all versions of Python -TESTS_REQUIRE = ['mock', 'pytest', 'pytest-xdist', 'pytest-forked'] +TESTS_REQUIRE = ['mock', 'pytest', 'pytest-xdist'] DOCS_REQUIRE = ['sphinx', 'sphinx_rtd_theme', 'pyparsing', 'pyperclip', 'six'] setup( @@ -34,12 +34,11 @@ deps = pyreadline pytest pytest-cov - pytest-forked pytest-xdist six subprocess32 commands = - py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing --forked + py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing codecov [testenv:py34] @@ -71,10 +70,9 @@ deps = pyperclip pyreadline pytest - pytest-forked pytest-xdist six -commands = py.test -v -n2 --forked +commands = py.test -v -n2 [testenv:py36] deps = @@ -98,10 +96,9 @@ deps = pyperclip pyreadline pytest - pytest-forked pytest-xdist six -commands = py.test -v -n2 --forked +commands = py.test -v -n2 [testenv:py37] deps = |