Skip to content

Commit 6f2c9ec

Browse files
authored
fix: ensure PYTEST_DEBUG_TEMPROOT exists (#54725)
1 parent 0a64cc9 commit 6f2c9ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sentry/testutils/pytest/sentry.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def pytest_configure(config):
4545
# the temproot. We'd like to keep invocations to just "pytest".
4646
# See source code for pytest's TempPathFactory.
4747
os.environ.setdefault("PYTEST_DEBUG_TEMPROOT", "/private/tmp/colima")
48+
try:
49+
os.mkdir("/private/tmp/colima")
50+
except FileExistsError:
51+
pass
4852

4953
# HACK: Only needed for testing!
5054
os.environ.setdefault("_SENTRY_SKIP_CONFIGURATION", "1")

0 commit comments

Comments
 (0)