Skip to content

Commit b9b803f

Browse files
committed
Have pytest ignore pytest warnings
1 parent 93a0f81 commit b9b803f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[pytest]
22
# Let console output be seen. Don't override the pytest plugin.
33
addopts = --capture=no --ignore conftest.py -p no:cacheprovider
4-
filterwarnings = ignore::DeprecationWarning
4+
# Ignore warnings such as DeprecationWarning and pytest.PytestUnknownMarkWarning
5+
filterwarnings = ignore::pytest.PytestWarning

seleniumbase/console_scripts/sb_mkdir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
data.append("[pytest]")
5555
data.append("addopts = --capture=no --ignore conftest.py "
5656
"-p no:cacheprovider")
57-
data.append("filterwarnings = ignore::DeprecationWarning")
57+
data.append("filterwarnings = ignore::pytest.PytestWarning")
5858
file_path = "%s/%s" % (dir_name, "pytest.ini")
5959
file = codecs.open(file_path, "w+", "utf-8")
6060
file.writelines("\r\n".join(data))

0 commit comments

Comments
 (0)