[issue8621] uuid.uuid4() generates non-unique values on OSX

Stefan Krah report at bugs.python.org
Tue Jun 22 11:56:17 CEST 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

Bill, could you try to add this to the tests and see if they
also fail when you run them standalone?


Index: Lib/test/test_uuid.py
===================================================================
--- Lib/test/test_uuid.py       (revision 82109)
+++ Lib/test/test_uuid.py       (working copy)
@@ -479,4 +479,7 @@
     test_support.run_unittest(TestUUID)
 
 if __name__ == '__main__':
+    import threading
+    t = threading.Thread(target=lambda: None)
+    t.start()
     test_main()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8621>
_______________________________________


More information about the Python-bugs-list mailing list