From 6a096663ce605d3839abee3d1c19473f877ddc36 Mon Sep 17 00:00:00 2001 From: Josh Hadley Date: Mon, 6 Jan 2020 15:48:19 -0800 Subject: [PATCH] [tests] update tx_test.py Extend `PFA_SKIP` to include "%%Copyright:" so tests don't fail when attempting to compare to controls (we had a number of tx tests that started failing after 1/1/2020 against controls generated in 2019). --- tests/tx_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tx_test.py b/tests/tx_test.py index 55376ab5b..5fc55dd12 100644 --- a/tests/tx_test.py +++ b/tests/tx_test.py @@ -54,7 +54,8 @@ def _get_extension(in_format): ] PFA_SKIP = [ - '%ADOt1write:' + '%ADOt1write:' + SPLIT_MARKER + + '%%Copyright:' + SPLIT_MARKER ] @@ -285,7 +286,7 @@ def test_V_option(arg, exp_filename): if arg: args.insert(2, arg) subprocess.call(args) - assert differ([expected_path, output_path, '-s', PFA_SKIP[0]]) + assert differ([expected_path, output_path] + ['-s'] + PFA_SKIP) # ------------- @@ -773,8 +774,7 @@ def test_ufo_self_closing_dict_element_bug701(): def test_ufo3_guideline_bug705(): actual_path = runner(CMD + ['-s', '-o', 't1', '-f', 'bug705.ufo']) expected_path = get_expected_path('bug705.pfa') - skip = ['-s'] + PFA_SKIP[:] - assert differ([expected_path, actual_path] + skip) + assert differ([expected_path, actual_path] + ['-s'] + PFA_SKIP) def test_ufo_vertical_advance_bug786():