Message244966
test_lru_cache_threaded is randomly failed on PPC64 PowerLinux buildbot: http://buildbot.python.org/all/builders/PPC64%20PowerLinux%203.x/builds/3573/steps/test/logs/stdio
======================================================================
FAIL: test_lru_cache_threaded (test.test_functools.TestLRUPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/test_functools.py", line 1129, in test_lru_cache_threaded
self.assertEqual(hits, 45)
AssertionError: 43 != 45
----------------------------------------------------------------------
The tests looks incorrect, it should fail when cached function is called simultaneously from different threads. Unfortunately it is hard reproduce the failure on other platform.
Proposed patch fixes the test and adds other threaded test, specially for simultaneous call. |
|
Date |
User |
Action |
Args |
2015-06-07 18:56:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, jcea, amaury.forgeotdarc, pitrou, scoder, giampaolo.rodola, ezio.melotti, asvetlov, poke, meador.inge, anacrolix, Aaron.Meurer, BreamoreBoy, python-dev, eric.snow, brechtm, kmike, kachayev, josh.r, Tim.Graham |
2015-06-07 18:56:06 | serhiy.storchaka | set | messageid: <1433703366.19.0.341988024592.issue14373@psf.upfronthosting.co.za> |
2015-06-07 18:56:06 | serhiy.storchaka | link | issue14373 messages |
2015-06-07 18:56:06 | serhiy.storchaka | create | |
|