From 8105dd7f75b6aa5f812522d452cd378372752a10 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 2 May 2017 23:43:25 +0200 Subject: [PATCH] bpo-30223: Add global in regrtest main_in_temp_cwd (#1399) --- Lib/test/regrtest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index cbd9185257c7..5702e38f457c 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -1647,6 +1647,8 @@ class _ExpectedSkips: def main_in_temp_cwd(): """Run main() in a temporary working directory.""" + global TEMPDIR + # When tests are run from the Python build directory, it is best practice # to keep the test files in a subfolder. It eases the cleanup of leftover # files using command "make distclean". -- 2.47.3