Skip to content

Commit f3791a3

Browse files
committed
Fix test script for python3.6
1 parent c1a5e31 commit f3791a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/snippets/test_re.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
mo = re.search(needle, haystack)
88
print(mo)
99

10-
assert isinstance(mo, re.Match)
10+
# Does not work on python 3.6:
11+
# assert isinstance(mo, re.Match)
1112
assert mo.start() == 1
1213
assert mo.end() == 5

0 commit comments

Comments
 (0)