Ignore deprecation warnings

This commit is contained in:
Michael Mintz 2018-09-19 16:17:31 -04:00
parent ec7f880f1a
commit 0fe9fc5294
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
[pytest]
# Let console output be seen. Don't override the pytest plugin.
addopts = --capture=no --ignore conftest.py
filterwarnings = ignore::DeprecationWarning

View File

@ -53,6 +53,7 @@ def main():
data = []
data.append("[pytest]")
data.append("addopts = --capture=no --ignore conftest.py")
data.append("filterwarnings = ignore::DeprecationWarning")
file_path = "%s/%s" % (dir_name, "pytest.ini")
file = codecs.open(file_path, "w+", "utf-8")
file.writelines("\r\n".join(data))