summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-23 22:07:49 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-23 22:07:49 -0400
commit9c791748dc97d33cf0f5f2205e53764df9d19241 (patch)
tree7b1e452cfdba245eacaeac9eda2d8ffe2a285a9e /tests
parent64408656a59ef89c157ef378f4cd912401a861e6 (diff)
downloadpython-coveragepy-9c791748dc97d33cf0f5f2205e53764df9d19241.tar.gz
Bug 581 was fixed, don't need the skipped test any more
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 1323bc3..39e3122 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -446,44 +446,6 @@ class ApiTest(CoverageTest):
self.assertNotIn("module-not-imported", err)
self.assertNotIn("no-data-collected", err)
- @pytest.mark.expensive
- def test_bug_581(self):
- self.skipTest("This test proves a failure, but we don't have a fix yet")
- # Test for https://bitbucket.org/ned/coveragepy/issues/581/44b1-44-breaking-in-ci
- # 1000 files to import
- for i in range(1000):
- self.make_file("m{0:03d}.py".format(i), "a = 1")
- self.make_file("chaos.py", """\
- import importlib
- import random
- import threading
-
- import coverage
-
- cov = None
- run = True
-
- def random_load():
- while run:
- candidate = "m{:03d}".format(random.randint(0, 999))
- mod = importlib.import_module(candidate)
-
- cov = coverage.Coverage()
- cov.start()
-
- for n in range(20):
- threading.Thread(target=random_load).start()
-
- cov.stop()
- try:
- cov.save()
- print("Saved OK")
- finally:
- run = False
- """)
- out = self.run_command("python chaos.py")
- self.assertEqual(out, "Saved OK\n")
-
class NamespaceModuleTest(UsingModulesMixin, CoverageTest):
"""Test PEP-420 namespace modules."""