We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d7a42 commit ad0591cCopy full SHA for ad0591c
1 file changed
Lib/test/_test_multiprocessing.py
@@ -4938,7 +4938,7 @@ def test_shared_memory_slice_assignment_no_crash(self):
4938
mv = shm.buf
4939
shm.close()
4940
shm.unlink()
4941
- with self.assertRaises(BufferError):
+ with self.assertRaises((BufferError, ValueError)):
4942
mv[:5] = b'hello'
4943
4944
@unittest.skipIf(os.name != "posix", "resource_tracker is posix only")
0 commit comments