summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2014-01-10 14:32:58 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2014-01-10 14:32:58 -0500
commit35d93a4aee638579309420445f6d9395b51c0560 (patch)
tree2f91bc98d49245b68e5f4dacc3b506350486c995 /tox.ini
parent58e52b0f1b845709ec840f9a8270fe2eb390c6d9 (diff)
downloadpyopenssl-35d93a4aee638579309420445f6d9395b51c0560.tar.gz
Some explanations and a safety harness for PYTHONPATH craziness.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 1a3e9e3..d1e6170 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,10 +2,18 @@
envlist = py26,py27,pypy,py32,py33
[testenv]
+setenv =
+ # Do not allowed the executing environment to pollute the test environment
+ # with extra packages.
+ PYTHONPATH=
+
+# The standard library unittest module can run tests on Python 2.7 and newer
commands = python -m unittest -v OpenSSL.test.test_rand OpenSSL.test.test_crypto OpenSSL.test.test_ssl
[testenv:py26]
deps =
+ # Twisted doesn't declare this dependency so we have to do it
zope.interface
twisted
+# On Python 2.6 use a different test runner
commands = trial OpenSSL