Skip to content

Commit 0ff1027

Browse files
committed
add check for TESTFLO_SPEC before deleting
1 parent 2f4e2a5 commit 0ff1027

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testflo/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def testcontext(test):
6363
test.err_msg = traceback.format_exc()
6464
finally:
6565
sys.path = old_sys_path
66-
del os.environ['TESTFLO_SPEC']
66+
if 'TESTFLO_SPEC' in os.environ:
67+
del os.environ['TESTFLO_SPEC']
6768

6869

6970
class Test(object):

0 commit comments

Comments
 (0)