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 aee2898 commit 1a5ac19Copy full SHA for 1a5ac19
Lib/test/test_uuid.py
@@ -741,9 +741,13 @@ def test_uuid7_uniqueness(self):
741
# uses os.urandom() as a PRNG which features better randomness.
742
#
743
# Until reaching UNIX_EPOCH + 10'000 years, the probability for
744
- # generating two identical UUIDs is negligilbe.
745
- uuids = {self.uuid.uuid7() for _ in range(1000)}
746
- self.assertEqual(len(uuids), 1000)
+ # generating two identical UUIDs is negligible.
+ N = 1000
+ uuids = {self.uuid.uuid7() for _ in range(N)}
747
+ self.assertEqual(len(uuids), N)
748
+
749
+ versions = {u.version for u in uuids}
750
+ self.assertSetEqual(versions, {7})
751
752
def test_uuid7_monotonicity(self):
753
equal = self.assertEqual
0 commit comments