mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
bpo-45052: Unskips a failing test_shared_memory_basics
test (GH-28182)
This commit is contained in:
parent
37272f5800
commit
19871fce3b
2 changed files with 7 additions and 2 deletions
|
@ -3773,7 +3773,6 @@ class _TestSharedMemory(BaseTestCase):
|
|||
local_sms.buf[:len(binary_data)] = binary_data
|
||||
local_sms.close()
|
||||
|
||||
@unittest.skipIf(sys.platform == "win32", "test is broken on Windows")
|
||||
def test_shared_memory_basics(self):
|
||||
sms = shared_memory.SharedMemory('test01_tsmb', create=True, size=512)
|
||||
self.addCleanup(sms.unlink)
|
||||
|
@ -3792,7 +3791,6 @@ class _TestSharedMemory(BaseTestCase):
|
|||
pickled_sms = pickle.dumps(sms)
|
||||
sms2 = pickle.loads(pickled_sms)
|
||||
self.assertEqual(sms.name, sms2.name)
|
||||
self.assertEqual(sms.size, sms2.size)
|
||||
self.assertEqual(bytes(sms.buf[0:6]), bytes(sms2.buf[0:6]), b'pickle')
|
||||
|
||||
# Modify contents of shared memory segment through memoryview.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue