Skip to content

Commit 468e991

Browse files
committed
Fixed issue in util function for tests
1 parent 0192fd4 commit 468e991

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/__utils__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def rcfile(rcfile, debug=False):
5454
cmd += " -v"
5555
out, err = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True).communicate()
5656
out = re.split(r"\+{10,}\s.*?\s\+{10,}", out.decode())[1:]
57-
err = "\n".join(l for l in err.decode().splitlines() if not l.startswith("Warning: ")).strip()
57+
err = "\n".join(l for l in err.decode().splitlines() if not l.startswith("Warning: ") and \
58+
all(x not in l for x in ["DeprecationWarning: ", "import pkg_resources", "There are some issues"])).strip()
5859
c = []
5960
with open(p) as f:
6061
for l in f:

0 commit comments

Comments
 (0)