Skip to content

Commit 86fb4a4

Browse files
committed
Randomly sample datatypes to test.
1 parent 6c4f1a4 commit 86fb4a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/tests_integration/test_datatypes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import random
23

34
import pytest
45
import test_utils
@@ -63,9 +64,9 @@ def test_transfer_datatypes(
6364

6465
# Unfortunately on Windows we are encountering 'The command line is too long'
6566
# and so cannot test against all datatypes here.
66-
some_narrow_datatypes = canonical_configs.quick_get_narrow_datatypes()[
67-
:10
68-
]
67+
some_narrow_datatypes = random.sample(
68+
canonical_configs.quick_get_narrow_datatypes(), 10
69+
)
6970

7071
datatypes_used = self.get_narrow_only_datatypes_used(used=False)
7172
for key in some_narrow_datatypes:

0 commit comments

Comments
 (0)