1. Dev compatible with windows path

2. add @pytest.mark.skip
This commit is contained in:
mannaandpoem 2024-02-02 14:59:16 +08:00
parent ec97645eb4
commit dcb0623d46
2 changed files with 8 additions and 3 deletions

View file

@ -96,7 +96,8 @@ class DependencyFile:
key = Path(filename).relative_to(root)
except ValueError:
key = filename
return set(self._dependencies.get(str(key), {}))
key = re.sub(r"\\+", "/", str(key))
return set(self._dependencies.get(key, {}))
def delete_file(self):
"""Delete the dependency file."""