Skip to content

Commit

Permalink
Bail early if long path is not set
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Dec 23, 2020
1 parent 501a6f1 commit 88101a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,11 @@ def current_fastest(current_creators):

@pytest.fixture(scope="session")
def session_app_data(tmp_path_factory):
app_data = AppDataDiskFolder(folder=str(tmp_path_factory.mktemp("session-app-data")))
temp_folder = tmp_path_factory.mktemp("session-app-data")
# check long path support
test_long_path_support = temp_folder / ("a" * (270 - len(str(temp_folder))))
test_long_path_support.write_text("a")
app_data = AppDataDiskFolder(folder=str(temp_folder))
with change_env_var(str("VIRTUALENV_OVERRIDE_APP_DATA"), str(app_data.lock.path)):
yield app_data

Expand Down

0 comments on commit 88101a4

Please sign in to comment.