Skip to content

Commit 607f2c3

Browse files
committed
Fix teardown order for Windows
1 parent 836fbda commit 607f2c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_httpservers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,12 +576,12 @@ def setUp(self):
576576
def tearDown(self):
577577
try:
578578
os.chdir(self.cwd)
579-
try:
580-
shutil.rmtree(self.tempdir)
581-
except:
582-
pass
583579
finally:
584580
super().tearDown()
581+
try:
582+
shutil.rmtree(self.tempdir)
583+
except:
584+
pass
585585

586586
def check_status_and_reason(self, response, status, data=None):
587587
def close_conn():

0 commit comments

Comments
 (0)