Commits

Ned Batchelder  committed 847e386 Draft

Make tox with with py3.2: the .so is named differently there.

  • Participants
  • Parent commits aa0ddef

Comments (0)

Files changed (1)

 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]