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 <1433703366.19.0.341988024592.issue14373@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1433703366.19.0.341988024592.issue14373@psf.upfronthosting.co.za>
2015-06-07 18:56:06serhiy.storchakalinkissue14373 messages
2015-06-07 18:56:06serhiy.storchakacreate