From 79fe3d948f27d53b72653a8ed5f6517f2574f314 Mon Sep 17 00:00:00 2001 From: Roland Puntaier Date: Fri, 6 Mar 2020 18:40:41 +0100 Subject: [PATCH] clean after tests/apis --- tests/apis/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/apis/wscript b/tests/apis/wscript index 10022c98..d32258a2 100755 --- a/tests/apis/wscript +++ b/tests/apis/wscript @@ -146,7 +146,10 @@ def test(ctx): nd3 = bld.srcnode.make_node('e.e+(e).txt') nd3.write("test") create('src/a.txt') - os.remove("src/src") + try: + os.remove("src/src") + except FileNotFoundError: + pass os.symlink("../src","src/src") tt("ant_glob ->", len(bld.srcnode.ant_glob('*.txt', flat=False)), 2) @@ -188,3 +191,5 @@ def test(ctx): if errors: bld.fatal('There are test failures ^^') + remove('a') + remove('src')