summaryrefslogtreecommitdiff
path: root/tests/extmod/ure_error.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ure_error.py')
-rw-r--r--tests/extmod/ure_error.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/extmod/ure_error.py b/tests/extmod/ure_error.py
index f52f735c7..a99a47f97 100644
--- a/tests/extmod/ure_error.py
+++ b/tests/extmod/ure_error.py
@@ -9,17 +9,19 @@ except ImportError:
print("SKIP")
raise SystemExit
+
def test_re(r):
try:
re.compile(r)
print("OK")
- except: # uPy and CPy use different errors, so just ignore the type
+ except: # uPy and CPy use different errors, so just ignore the type
print("Error")
-test_re(r'?')
-test_re(r'*')
-test_re(r'+')
-test_re(r')')
-test_re(r'[')
-test_re(r'([')
-test_re(r'([)')
+
+test_re(r"?")
+test_re(r"*")
+test_re(r"+")
+test_re(r")")
+test_re(r"[")
+test_re(r"([")
+test_re(r"([)")