summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-07-09 22:51:33 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-07-09 22:51:33 -0400
commit0d8cd57b6d5d4755709ca853856eb14b4b63f437 (patch)
tree7c5d026c692d6de2e52f76d9748b8237a25e65ac
parent5cbd4a4910110021b5ea9693447163f75f4b1953 (diff)
downloadpython-coveragepy-git-0d8cd57b6d5d4755709ca853856eb14b4b63f437.tar.gz
Make tox with with py3.2: the .so is named differently there.
-rw-r--r--servant.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/servant.py b/servant.py
index 33c0d904..efbe8a0f 100644
--- a/servant.py
+++ b/servant.py
@@ -5,10 +5,16 @@ import zipfile
from nose import core as nose_core
if sys.argv[1] == "remove_extension":
- try:
- os.remove("coverage/tracer.so")
- except OSError:
- pass
+ so_names = """
+ tracer.so
+ tracer.cpython-32m.so
+ """.split()
+
+ for filename in so_names:
+ try:
+ os.remove(os.path.join("coverage", filename))
+ except OSError:
+ pass
elif sys.argv[1] == "test_with_tracer":
os.environ["COVERAGE_TEST_TRACER"] = sys.argv[2]