Skip to content

Commit 70ba65a

Browse files
authored
fix WASI build
1 parent 244cd0b commit 70ba65a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Lib/test/support/script_helper.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,11 @@ class EnsureSafeUserHistory(unittest.TestCase):
352352

353353
@classmethod
354354
def setUpClass(cls):
355-
if history_file := _site_gethistoryfile():
356-
if os.path.exists(history_file):
357-
cls.__history_file = history_file
358-
cls.__history_stat = _file_signature(history_file)
359-
else:
360-
cls.__history_file = cls.__history_stat = None
355+
cls.__history_file = cls.__history_stat = None
356+
history_file = _site_gethistoryfile()
357+
if os.path.exists(history_file):
358+
cls.__history_file = history_file
359+
cls.__history_stat = _file_signature(history_file)
361360

362361
def tearDown(self):
363362
super().tearDown()

0 commit comments

Comments
 (0)