From 8e337c0506ee930cd5edb265df4191d4efba8d64 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 19 Jul 2024 14:07:29 +0200 Subject: kicad: Small fixes to 8.99 compatibility --- gerbonara/tests/test_kicad_symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/tests') diff --git a/gerbonara/tests/test_kicad_symbols.py b/gerbonara/tests/test_kicad_symbols.py index 15d2082..d97cc6f 100644 --- a/gerbonara/tests/test_kicad_symbols.py +++ b/gerbonara/tests/test_kicad_symbols.py @@ -57,7 +57,7 @@ def test_round_trip(kicad_library_file, tmpfile): # Some symbol files contain ints where floats should be. # For instance, there is some disagreement as to whether rotation angles are ints or floats, and the spec doesn't say. - FLOAT_INT_ISSUES = ['offset', 'at', 'width', 'xy', 'start', 'mid', 'end', 'center'] + FLOAT_INT_ISSUES = ['offset', 'at', 'width', 'xy', 'start', 'mid', 'end', 'center', 'length'] if any(original.startswith(f'({name}') and stage1.startswith(f'({name}') for name in FLOAT_INT_ISSUES): fix_floats = lambda s: re.sub(r'\.0+(\W)', r'\1', s) original, stage1 = fix_floats(original), fix_floats(stage1) -- cgit