Skip to content

Commit 42e88fe

Browse files
committed
Suppress pytest warnings
1 parent 080b4c8 commit 42e88fe

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def pytest_collect_file(parent, path):
2424
def pytest_itemcollected(item):
2525
dirs = item.session.fspath.bestrelpath(item.fspath.dirpath()).split(os.sep)
2626
for d in dirs:
27-
if d != ".":
27+
if d not in (".", "geocoder_tester", "world"):
2828
item.add_marker(d)
2929
if item.nodeid in CONFIG.get('COMPARE_WITH', []):
3030
item.add_marker(

geocoder_tester/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def reverse(**params):
298298

299299
def normalize(s):
300300
return normalize_pattern.sub(' ', unidecode(s.lower()))
301-
normalize_pattern = re.compile('[^\w]')
301+
normalize_pattern = re.compile(r'[^\w]')
302302

303303

304304
def compare_values(get, expected):

pytest.ini

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
[pytest]
22
addopts = -v --tb no
33
norecursedirs = __pycache__
4-
markers =
5-
france
6-
geocoder_tester
7-
germany
8-
iledefrance
9-
poland
10-
world
4+
filterwarnings:
5+
ignore::_pytest.warning_types.PytestUnknownMarkWarning

0 commit comments

Comments
 (0)