Skip to content

Commit 88f401e

Browse files
author
Xin Dong
committed
Re-enable None value generating
1 parent 168602c commit 88f401e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/correctness/gen.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def random_id_value():
183183
def random_value():
184184
r = global_prng.random()
185185
while True:
186-
# if (r < 0.1) and generator_options.test_nulls:
187-
# val = None
188-
if (r < 0.2):
186+
if (r < 0.1) and generator_options.test_nulls:
187+
val = None
188+
elif (r < 0.2):
189189
val = random_float()
190190
elif (r < 0.4):
191191
val = random_string(global_prng.randint(1, 8))

0 commit comments

Comments
 (0)