Skip to content

Commit d2a80a4

Browse files
committed
setup revise
1 parent 2b325e2 commit d2a80a4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_tox.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,14 @@
1111

1212

1313
@pytest.fixture(scope="module", autouse=True)
14-
def setup_test_result_dir_and_teardown():
14+
def setup_test_result_dir():
1515
print("==============setup==============")
1616
for dir in remove_directories:
1717
if os.path.exists(dir):
1818
shutil.rmtree(dir)
1919

2020
yield
2121

22-
print("==============tearDown==============")
23-
for dir in remove_directories:
24-
if os.path.exists(dir):
25-
shutil.rmtree(dir)
26-
2722

2823
def run_command(command):
2924
process = subprocess.run(command, shell=True, capture_output=True, text=True)

0 commit comments

Comments
 (0)