Don't fail test because of deprecation warnings
@@ -263,6 +263,8 @@ def functional_tests(raise_warnings, interactive, run_vagrant, run_docker):
out, err = p.communicate()
assert p.poll() != 0
err = err.splitlines()
+ while b"DeprecationWarning" in err[0]:
+ err = err[2:]
assert b"Wrong unpacker used" in err[0]
assert err[1].startswith(b"usage: ")
# Delete directory
@@ -302,6 +304,8 @@ def functional_tests(raise_warnings, interactive, run_vagrant, run_docker):
out, err = p.communicate()
assert p.poll() != 0
err = err.splitlines()
+ while b"DeprecationWarning" in err[0]:
+ err = err[2:]
assert b"Wrong unpacker used" in err[0]
assert err[1].startswith(b"usage:")
finally:
@@ -818,6 +822,8 @@ def functional_tests(raise_warnings, interactive, run_vagrant, run_docker):
out, err = p.communicate()
assert p.poll() != 0
err = err.splitlines()
+ while b"DeprecationWarning" in err[0]:
+ err = err[2:]
assert b"Wrong unpacker used" in err[0]
assert err[1].startswith(b"usage: ")
# Delete directory
