1919from commoncode .system import on_mac
2020from commoncode .system import on_macos_14_or_higher
2121from commoncode .system import on_windows
22- from commoncode .system import py36
23- from commoncode .system import py37
22+ from commoncode .system import py314
2423
2524from scancode .cli_test_utils import check_json_scan
2625from scancode .cli_test_utils import load_json_result
@@ -901,8 +900,6 @@ def test_check_error_count():
901900 assert str (error_files ) == str (error_count )
902901
903902
904- on_mac_new_py = on_mac and not (py36 or py37 )
905-
906903
907904def test_scan_keep_temp_files_is_false_by_default ():
908905 test_file = test_env .get_test_loc ('tempfiles/samples' )
@@ -919,9 +916,9 @@ def test_scan_keep_temp_files_is_false_by_default():
919916 # the SCANCODE_TEMP dir is not deleted, but it should be empty
920917 assert os .path .exists (temp_directory )
921918 # this does not make sense but that's what is seen in practice
922- if on_mac_new_py :
919+ if on_mac :
923920 expected = 4
924- elif on_windows :
921+ elif on_windows or ( on_linux and py314 ) :
925922 expected = 2
926923 else :
927924 expected = 1
@@ -945,10 +942,10 @@ def test_scan_keep_temp_files_keeps_files():
945942 # the SCANCODE_TEMP dir is not deleted, but it should not be empty
946943 assert os .path .exists (temp_directory )
947944 # this does not make sense but that's what is seen in practice
948- expected = 8 if (on_windows or on_mac_new_py ) else 7
949- if on_mac_new_py :
945+ expected = 8 if (on_windows or on_mac ) else 7
946+ if on_mac :
950947 expected = 10
951- elif on_windows :
948+ elif on_windows or ( on_linux and py314 ) :
952949 expected = 8
953950 else :
954951 expected = 7
0 commit comments