Ignore deprecation warnings
This commit is contained in:
parent
ec7f880f1a
commit
0fe9fc5294
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue