[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

Jesse Noller report at bugs.python.org
Sun Jan 18 03:32:23 CET 2009


Jesse Noller <jnoller at gmail.com> added the comment:

FYI, there was a small issue in the patch - namely the only way to get the 
AttributeError to raise in the Value/Array creation is to not pass in a 
lock, True/None or False - the latter three get to a lock/RLock while the 
former will have the acquire method. I changed the test to reflect this:

    self.assertRaises(AttributeError, self.Value, 'i', 5, lock='navalue')
    self.assertRaises(AttributeError,
                      self.Array, 'i', range(10), lock='notalock')

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4449>
_______________________________________


More information about the Python-bugs-list mailing list