Skip to content

Commit

Permalink
FIX-modin-project#2559: Ignore files from /proc/ when detecting file …
Browse files Browse the repository at this point in the history
…leaks

Signed-off-by: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
  • Loading branch information
vnlitvinov committed Dec 18, 2020
1 parent 3e62906 commit 387cc98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modin/pandas/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,10 @@ def check(*a, **kw):
try:
fstart.remove(item)
except ValueError:
leaks.append(item)
# ignore files in /proc/, as they have nothing to do with
# modin reading any data (and this is what we care about)
if not item[0].startswith("/proc/"):
leaks.append(item)
assert (
not leaks
), f"Unexpected open handles left for: {', '.join(item[0] for item in leaks)}"
Expand Down

0 comments on commit 387cc98

Please sign in to comment.