Skip to content

Commit ad0591c

Browse files
Resolve Test Error
1 parent 96d7a42 commit ad0591c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4938,7 +4938,7 @@ def test_shared_memory_slice_assignment_no_crash(self):
49384938
mv = shm.buf
49394939
shm.close()
49404940
shm.unlink()
4941-
with self.assertRaises(BufferError):
4941+
with self.assertRaises((BufferError, ValueError)):
49424942
mv[:5] = b'hello'
49434943

49444944
@unittest.skipIf(os.name != "posix", "resource_tracker is posix only")

0 commit comments

Comments
 (0)