Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
b666c076
Commit
b666c076
authored
4 years ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
If our temporary directory does not exist anymore, recreate it.
This can happen during (for example) tests that call `main(...)`.
parent
f6fc6ce4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#229084
failed
4 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
diffoscope/tempfiles.py
+1
-1
1 addition, 1 deletion
diffoscope/tempfiles.py
with
1 addition
and
1 deletion
diffoscope/tempfiles.py
+
1
−
1
View file @
b666c076
...
...
@@ -88,7 +88,7 @@ def clean_all_temp_files():
def
_get_base_temporary_directory
():
global
_BASEDIR
if
_BASEDIR
is
None
:
if
_BASEDIR
is
None
or
not
os
.
path
.
exists
(
_BASEDIR
.
name
)
:
try
:
# Try and generate a potentially-useful suffix to our temporary directory
suffix
=
"
_{}
"
.
format
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment