New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
intermitent failures with test_dbm #64293
Comments
Following errors occur about half the time: ====================================================================== Traceback (most recent call last):
File "/home/ethan/source/python/issue19995/Lib/test/test_dbm.py", line 75, in test_anydbm_creation
self.read_helper(f)
File "/home/ethan/source/python/issue19995/Lib/test/test_dbm.py", line 117, in read_helper
self.assertEqual(self._dict[key], f[key.encode("ascii")])
KeyError: b'0' ====================================================================== Traceback (most recent call last):
File "/home/ethan/source/python/issue19995/Lib/test/test_dbm.py", line 90, in test_anydbm_modification
self.read_helper(f)
File "/home/ethan/source/python/issue19995/Lib/test/test_dbm.py", line 117, in read_helper
self.assertEqual(self._dict[key], f[key.encode("ascii")])
KeyError: b'0' ====================================================================== Traceback (most recent call last):
File "/home/ethan/source/python/issue19995/Lib/test/test_dbm.py", line 96, in test_anydbm_read
self.read_helper(f)
File "/home/ethan/source/python/issue19995/Lib/test/test_dbm.py", line 117, in read_helper
self.assertEqual(self._dict[key], f[key.encode("ascii")])
KeyError: b'0' |
Actually, make that about 1/5 of the time. |
I can't reproduce on Linux 12.04. I tried the test a thousand times. Ethan, what is your build environment? |
Actually, I haven't had this issue in quite a while now, so closing. Thanks for taking a look at it, Jesús. |
I'm seeing this same failure in python3.5 on 16.04 about 20% of the time:
Under 3.6 (built from source), it seems to fail 100% of the time
|
Stepping through the code, it seems under ndbm it is creating a file with a '.db' extension:
|
That doesn't seem to be the problem though, that occurs in both the successful and failure case |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: