Skip to content

Commit

Permalink
Fix windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Aug 3, 2022
1 parent d9cddb5 commit 4cea580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
@@ -1,5 +1,6 @@
[build-system]
requires = [ "setuptools>=41.0.1",]
build-backend = "setuptools.build_meta"

[tool.mypy]
ignore_missing_imports = true
Expand Down
6 changes: 3 additions & 3 deletions tests/test_download.py
Expand Up @@ -336,9 +336,9 @@ def test_grabdata_hash_typo():

url = _demo_url()

dpath = ub.ensure_app_cache_dir('ubelt/tests/test_download')
dpath = ub.Path.appdir('ubelt/tests/test_download')
fname = basename(url)
fpath = ub.Path(join(dpath, fname))
fpath = dpath / fname
stamp_fpath = fpath.augment(tail='.stamp_md5.json')

for verbose in [5]:
Expand All @@ -361,7 +361,7 @@ def test_grabdata_hash_typo():
hash_prefix='e09c80c42fda55f9d992e59ca6b3307d',
hasher='md5', verbose=verbose,
appname='ubelt/tests/test_download')
assert got_fpath == str(fpath)
assert ub.Path(got_fpath).resolve() == fpath.resolve()
assert fpath.exists()

# If we delete the .hash file we will simply recompute
Expand Down

0 comments on commit 4cea580

Please sign in to comment.