Browse Source

Tests: fix deprecation warning

patch-2
Neil Booth 6 years ago
parent
commit
624a921a6e
  1. 2
      tests/server/test_env.py

2
tests/server/test_env.py

@ -407,7 +407,7 @@ def test_tor_identity():
def test_ban_versions():
e = Env()
assert e.drop_client is None
ban_re = '1\.[0-2]\.\d+?[_\w]*'
ban_re = r'1\.[0-2]\.\d+?[_\w]*'
os.environ['DROP_CLIENT'] = ban_re
e = Env()
assert e.drop_client == re.compile(ban_re)

Loading…
Cancel
Save