fix enum and backslash warnings (GH-25861)

- Enum warning in test_faulthandler
- backslash warning in test_ipaddress
This commit is contained in:
Ethan Furman 2021-05-03 18:44:30 -07:00 committed by GitHub
parent d783ce789d
commit 652bcd9f9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -663,7 +663,7 @@ class FaultHandlerTests(unittest.TestCase):
import sys import sys
all_threads = {all_threads} all_threads = {all_threads}
signum = {signum} signum = {signum:d}
unregister = {unregister} unregister = {unregister}
chain = {chain} chain = {chain}
filename = {filename!r} filename = {filename!r}

View file

@ -97,7 +97,7 @@ class CommonTestMixin_v4(CommonTestMixin):
def test_leading_zeros(self): def test_leading_zeros(self):
# bpo-36384: no leading zeros to avoid ambiguity with octal notation # bpo-36384: no leading zeros to avoid ambiguity with octal notation
msg = "Leading zeros are not permitted in '\d+'" msg = "Leading zeros are not permitted in '\\d+'"
addresses = [ addresses = [
"000.000.000.000", "000.000.000.000",
"192.168.000.001", "192.168.000.001",