Skip to content

Commit 652bcd9

Browse files
authored
fix enum and backslash warnings (GH-25861)
- Enum warning in test_faulthandler - backslash warning in test_ipaddress
1 parent d783ce7 commit 652bcd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_faulthandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ def check_register(self, filename=False, all_threads=False,
663663
import sys
664664
665665
all_threads = {all_threads}
666-
signum = {signum}
666+
signum = {signum:d}
667667
unregister = {unregister}
668668
chain = {chain}
669669
filename = {filename!r}

Lib/test/test_ipaddress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class CommonTestMixin_v4(CommonTestMixin):
9797

9898
def test_leading_zeros(self):
9999
# bpo-36384: no leading zeros to avoid ambiguity with octal notation
100-
msg = "Leading zeros are not permitted in '\d+'"
100+
msg = "Leading zeros are not permitted in '\\d+'"
101101
addresses = [
102102
"000.000.000.000",
103103
"192.168.000.001",

0 commit comments

Comments
 (0)