Skip to content

Commit 702a64e

Browse files
author
chenyunliang520
committed
Fix Faker string type assertion to properly handle empty string and None values
1 parent 6be760d commit 702a64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/fix_faker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ def match_any(self, spec, got, want):
321321
else:
322322
assert got == want
323323
elif spec == str:
324-
if want == '' or want is None:
325-
assert got == '' or got is None
324+
if want == "" or want is None:
325+
assert got == "" or got is None
326326
else:
327327
assert got == want
328328
else:

0 commit comments

Comments
 (0)