This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Aaron.Meurer, BreamoreBoy, Tim.Graham, amaury.forgeotdarc, anacrolix, asvetlov, brechtm, eric.snow, ezio.melotti, giampaolo.rodola, jcea, josh.r, kachayev, kmike, meador.inge, pitrou, poke, python-dev, rhettinger, scoder, serhiy.storchaka
Date 2015-06-07.18:56:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
test_lru_cache_threaded is randomly failed on PPC64 PowerLinux buildbot:

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/", 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:06serhiy.storchakasetrecipients: + 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:06serhiy.storchakasetmessageid: <>
2015-06-07 18:56:06serhiy.storchakalinkissue14373 messages
2015-06-07 18:56:06serhiy.storchakacreate