Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa0a91c

Browse files
committed
runtests.py removes tests/build/
1 parent c6464c6 commit aa0a91c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

runtests.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def run_tests_exe(executable, verbose, tested):
5757
def run_tests(python, verbose, tested):
5858
executable = which(python)
5959
if not executable:
60-
print("Ignore missing: %s" % python)
60+
print("Ignore missing Python executable: %s" % python)
6161
return
6262
run_tests_exe(executable, verbose, tested)
6363

@@ -75,8 +75,13 @@ def parse_args():
7575
def main():
7676
args = parse_args()
7777

78+
path = os.path.join(TEST_DIR, 'build')
79+
if os.path.exists(path):
80+
shutil.rmtree(path)
81+
7882
# upgrade_pythoncapi.py requires Python 3.6 or newer
7983
if sys.version_info >= (3, 6):
84+
print("Run %s" % TEST_UPGRADE)
8085
cmd = [sys.executable, TEST_UPGRADE]
8186
if args.verbose:
8287
cmd.append('-v')

0 commit comments

Comments
 (0)