Merge pull request #882 from hwine/GH-881_make_macOS_docker_work

pull/885/head
Tim Head 2020-04-27 16:20:20 +02:00 zatwierdzone przez GitHub
commit bbc3ee02c0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -16,7 +16,11 @@ def test_env():
for how docker handles its -e & --env argument values
"""
ts = str(time.time())
with tempfile.TemporaryDirectory() as tmpdir:
# There appear to be some odd combinations of default dir that do
# not work on macOS Catalina with Docker CE 2.2.0.5, so use
# the current dir -- it'll be deleted immediately
with tempfile.TemporaryDirectory(dir=os.path.abspath(os.curdir)) as tmpdir:
username = getuser()
os.environ["SPAM"] = "eggs"
os.environ["SPAM_2"] = "ham"