Skip to content

Commit 0f19f1c

Browse files
committed
handle test failure
1 parent dda3a48 commit 0f19f1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/framework/easyconfig.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3052,6 +3052,10 @@ def test_template_constant_dict(self):
30523052
self.assertEqual(res, expected)
30533053

30543054
# mock get_avail_core_count which is used by set_parallel -> det_parallelism
3055+
try:
3056+
del st.det_parallelism._default_parallelism # Remove cache value
3057+
except AttributeError:
3058+
pass # Ignore if not present
30553059
orig_get_avail_core_count = st.get_avail_core_count
30563060
st.get_avail_core_count = lambda: 42
30573061

0 commit comments

Comments
 (0)