This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pablogsal, pierreglaser, pitrou, vstinner, xtreak
Date 2019-05-13.10:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
test_shared_memory_cleaned_after_process_termination() uses time as a weak synchronization primitive:

        # killing abruptly processes holding reference to a shared memory
        # segment should not leak the given memory segment.
        time.sleep(1.0)  # wait for the OS to collect the segment

        with self.assertRaises(FileNotFoundError):
            smm = shared_memory.SharedMemory(name, create=False)

Would it be possible to use a more reliable synchronization? Such test usually fail randomly.
Date User Action Args
2019-05-13 10:58:46vstinnersetrecipients: + vstinner, pitrou, pablogsal, xtreak, pierreglaser
2019-05-13 10:58:46vstinnersetmessageid: <>
2019-05-13 10:58:46vstinnerlinkissue36867 messages
2019-05-13 10:58:45vstinnercreate