Skip to content

Commit

Permalink
Override incorrect Windows test error
Browse files Browse the repository at this point in the history
  • Loading branch information
netromdk committed Oct 19, 2023
1 parent 4635423 commit 9612b7c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,13 @@ def test_exclude_regex_relative(self):
paths = detect_paths(["a"], config=self.config)
self.assertEqual(paths, [join("a", "code.py")])

rmtree(tmp_fld)
# When running on Windows, this can sometimes fail:
# PermissionError: [WinError 32] The process cannot access the file because it is being used
# by another process:
# 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpAAAANNNN'
# But we can ignore that since the files reside in a temporary folder anyway, and the
# folders/files aren't being used any longer either.
rmtree(tmp_fld, ignore_errors=True)

def test_detect_vermin_min_versions(self):
paths = detect_paths([abspath("vermin")], config=self.config)
Expand Down

0 comments on commit 9612b7c

Please sign in to comment.