Skip to content

Commit

Permalink
CI: Don't fail on new warnings from Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Jul 19, 2021
1 parent acf537a commit 929af95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def check_simple(args, stream, infile=1):
out, err = p.communicate()
assert p.poll() != 0
err = err.splitlines()
while b"DeprecationWarning" in err[0]:
while b"DeprecationWarning" in err[0] or b"ImportWarning" in err[0]:
err = err[2:]
assert b"Wrong unpacker used" in err[0]
assert err[1].startswith(b"usage: ")
Expand Down Expand Up @@ -301,7 +301,7 @@ def check_simple(args, stream, infile=1):
out, err = p.communicate()
assert p.poll() != 0
err = err.splitlines()
while b"DeprecationWarning" in err[0]:
while b"DeprecationWarning" in err[0] or b"ImportWarning" in err[0]:
err = err[2:]
assert b"Wrong unpacker used" in err[0]
assert err[1].startswith(b"usage:")
Expand Down Expand Up @@ -819,7 +819,7 @@ def check_simple(args, stream, infile=1):
out, err = p.communicate()
assert p.poll() != 0
err = err.splitlines()
while b"DeprecationWarning" in err[0]:
while b"DeprecationWarning" in err[0] or b"ImportWarning" in err[0]:
err = err[2:]
assert b"Wrong unpacker used" in err[0]
assert err[1].startswith(b"usage: ")
Expand Down

0 comments on commit 929af95

Please sign in to comment.