Skip to content

Commit

Permalink
Skip failing errors on windows due to long paths
Browse files Browse the repository at this point in the history
We are already configuring Windows to accept long paths, but even with
that it still fails... so we have no other option than skipping.
  • Loading branch information
abravalheri committed Aug 18, 2020
1 parent e8f2a28 commit b8d3800
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_generated_extension.py
@@ -1,5 +1,7 @@
import logging
import os
from pathlib import Path
from subprocess import CalledProcessError

import pytest
from pyscaffold import cli, shell
Expand All @@ -20,7 +22,13 @@ def test_generated_extension(tmpfolder):

cli.main(args)
with chdir("pyscaffoldext-some_extension"):
run_common_tasks()
try:
run_common_tasks()
except CalledProcessError as ex:
if os.name == "nt" and "too long" in ex.output:
pytest.skip("Windows really have a problem with long paths....")
else:
raise
putup = shell.get_executable("putup", prefix=".venv", include_path=False)
assert putup

Expand Down

0 comments on commit b8d3800

Please sign in to comment.