[Pkg-bitcoin-commits] [python-quamash] 30/78: added pytest-xdist for boxing tests to subprocesses

Jonas Smedegaard dr at jones.dk
Tue Dec 19 01:19:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.6.0_dfsg-1
in repository python-quamash.

commit 7c04cb83e96d0e0fb62e442295c9ad32c2438b0e
Author: Korijn van Golen <k.vangolen at clinicalgraphics.com>
Date:   Fri Aug 11 08:39:08 2017 +0200

    added pytest-xdist for boxing tests to subprocesses
---
 .travis.yml              | 2 +-
 appveyor/install.ps1     | 1 +
 tests/test_qeventloop.py | 2 --
 tox.ini                  | 2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index bd8a572..4d7d717 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -56,7 +56,7 @@ install:
   # Python 3.3
   - if echo $TRAVIS_PYTHON_VERSION | grep -q '^3.3'; then pip install asyncio; fi
   # flake8 style checker
-  - pip install flake8 pep8-naming flake8-debugger flake8-docstrings pytest-timeout
+  - pip install flake8 pep8-naming flake8-debugger flake8-docstrings pytest-timeout pytest-xdist
 script:
   - flake8
   - flake8 --select=D1 quamash/*.py
diff --git a/appveyor/install.ps1 b/appveyor/install.ps1
index 84fa63a..4de925f 100644
--- a/appveyor/install.ps1
+++ b/appveyor/install.ps1
@@ -32,6 +32,7 @@ function main () {
 	InstallPackage $env:PYTHON wheel
 	InstallPackage $env:PYTHON pytest
 	InstallPackage $env:PYTHON pytest-timeout
+	InstallPackage $env:PYTHON pytest-xdist
 	if($PYTHON_MAJ_VERSION -eq '3.3'){
 		InstallPackage $env:PYTHON asyncio
 	}
diff --git a/tests/test_qeventloop.py b/tests/test_qeventloop.py
index 7bbb5e7..a7098c7 100644
--- a/tests/test_qeventloop.py
+++ b/tests/test_qeventloop.py
@@ -139,7 +139,6 @@ class TestCanRunTasksInExecutor:
 		logging.debug('start blocking task()')
 
 
- at pytest.mark.skipif(os.environ.get('APPVEYOR') == 'True', reason="Fails on Windows.")
 def test_can_execute_subprocess_primitive(loop):
 	"""Verify that a subprocess can be executed using low-level api."""
 	transport, protocol = loop.run_until_complete(
@@ -535,7 +534,6 @@ def test_reader_writer_echo(loop, sock_pair):
 	loop.run_until_complete(asyncio.wait_for(mycoro(), timeout=1.0))
 
 
- at pytest.mark.skipif(os.environ.get('APPVEYOR') == 'True', reason="Fails on Windows.")
 def test_regression_bug13(loop, sock_pair):
 	"""Verify that a simple handshake between client and server works as expected."""
 	c_sock, s_sock = sock_pair
diff --git a/tox.ini b/tox.ini
index beb4154..ca26499 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,7 +19,7 @@ setenv=
 	pyside: QUAMASH_QTIMPL=PySide
 
 [pytest]
-addopts=-rxs -v --doctest-modules quamash quamash tests
+addopts=-rxs -v --boxed -n2 --doctest-modules quamash quamash tests
 timeout=10
 
 [testenv:flake8]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list