Skip to content

Commit f09af53

Browse files
Fix group size table test on Windows (#3723)
### Changes Update test to take into account a different vertical bar symbol. ### Reason for changes Test failure on Windows platform. ### Related tickets <!--- Post the numerical ID of the ticket, if available --> ### Tests https://github.com/openvinotoolkit/nncf/actions/runs/19136564834?pr=3723
1 parent 61fc34a commit f09af53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/cross_fw/test_templates/template_test_weights_compression.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,8 @@ def test_error_message_for_invalid_group_size(
521521
"int4_asym, group size 16 │ 25% (1 / 9) │ 25% (1 / 9)",
522522
]
523523
for row in table_rows:
524-
assert any(row in msg for msg in info_messages)
524+
# On Windows "|" is printed instead of "│"
525+
assert any(row in msg.replace("|", "│") for msg in info_messages), "\n".join(info_messages)
525526

526527
@pytest.mark.parametrize(
527528
[

0 commit comments

Comments
 (0)