[pypy-commit] pypy default: Fix this fragile test (it broke because of 167b802baf3b, unsure why)

arigo pypy.commits at gmail.com
Sun Nov 19 04:20:55 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r93083:eb297be15f48
Date: 2017-11-19 10:20 +0100
http://bitbucket.org/pypy/pypy/changeset/eb297be15f48/

Log:	Fix this fragile test (it broke because of 167b802baf3b, unsure why)

diff --git a/pypy/module/thread/test/test_import_lock.py b/pypy/module/thread/test/test_import_lock.py
--- a/pypy/module/thread/test/test_import_lock.py
+++ b/pypy/module/thread/test/test_import_lock.py
@@ -105,7 +105,7 @@
         assert importlock.count == 0
         # A new module
         importhook(space, 're')
-        assert importlock.count == 9
+        assert importlock.count >= 9
         # Import it again
         previous_count = importlock.count
         importhook(space, 're')


More information about the pypy-commit mailing list