Skip to content

Commit 44fae36

Browse files
Fix test failures
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent f08f225 commit 44fae36

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chardet==5.2.0
1010
charset-normalizer==3.4.2
1111
click==8.3.0
1212
colorama==0.4.6
13-
commoncode==32.4.0
13+
commoncode==32.4.1
1414
construct==2.10.70
1515
container-inspector==33.0.0
1616
cryptography==45.0.4

setup-mini.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ install_requires =
7272
click >= 6.7, !=7.0, !=8.1.8;python_version<'3.10'
7373
click >= 8.2.0;python_version>='3.10'
7474
colorama >= 0.3.9
75-
commoncode >= 32.3.0
75+
commoncode >= 32.4.0
7676
container-inspector >= 31.0.0
7777
debian-inspector >= 31.1.0
7878
dparse2 >= 0.7.0

tests/scancode/test_cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from commoncode.system import on_windows
2222
from commoncode.system import py36
2323
from commoncode.system import py37
24+
from commoncode.system import py314
2425

2526
from scancode.cli_test_utils import check_json_scan
2627
from scancode.cli_test_utils import load_json_result
@@ -919,9 +920,9 @@ def test_scan_keep_temp_files_is_false_by_default():
919920
# the SCANCODE_TEMP dir is not deleted, but it should be empty
920921
assert os.path.exists(temp_directory)
921922
# this does not make sense but that's what is seen in practice
922-
if on_mac_new_py:
923+
if on_mac:
923924
expected = 4
924-
elif on_windows:
925+
elif on_windows or (on_linux and py314):
925926
expected = 2
926927
else:
927928
expected = 1
@@ -948,7 +949,7 @@ def test_scan_keep_temp_files_keeps_files():
948949
expected = 8 if (on_windows or on_mac_new_py) else 7
949950
if on_mac_new_py:
950951
expected = 10
951-
elif on_windows:
952+
elif on_windows or (on_linux and py314):
952953
expected = 8
953954
else:
954955
expected = 7

0 commit comments

Comments
 (0)