Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tx] Make CharString length check a warning rather than a fatal error #446

Merged
merged 4 commits into from
Jun 27, 2018

Conversation

cjchapman
Copy link
Contributor

@cjchapman cjchapman commented Jun 27, 2018

Fixes #444

@miguelsousa
Copy link
Member

@cjchapman I think I know why Travis didn't kick in. Looking into it now.

(also incorporated some feedback from @miguelsousa, re: test name, comments, etc.)
Tests/tx_test.py Outdated
actual_path = runner(CMD + ['-o', '0', '-f', 'CJK-VarTest.otf'])
expected_path = _get_expected_path('CJK-VarTest.txt')
skip = ['-s', '## Filename']
assert differ([expected_path, actual_path] + skip)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need to define skip

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I do. If I comment it out, I get:

    def test_long_charstring_bug444():
        # read a CFF2 VF with a charstring longer that 65535, check output
        actual_path = runner(CMD + ['-o', '0', '-f', 'CJK-VarTest.otf'])
        expected_path = _get_expected_path('CJK-VarTest.txt')
        # skip = ['-s', '## Filename']
>       assert differ([expected_path, actual_path] + skip)
E       NameError: global name 'skip' is not defined

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry what I meant was, just do

assert differ([expected_path, actual_path, '-s', '## Filename'])

@miguelsousa miguelsousa merged commit c544a6e into develop Jun 27, 2018
@miguelsousa miguelsousa deleted the tx-fix-issue-444 branch June 27, 2018 20:07
@miguelsousa
Copy link
Member

@cjchapman it just occurred to me that cffread should get a version number bump. 2.1.0?

@miguelsousa miguelsousa changed the title fix for issue #444: make CharString length check a warning [tx] Make CharString length check a warning rather than a fatal error Sep 4, 2018
miguelsousa added a commit that referenced this pull request Sep 7, 2018
miguelsousa added a commit that referenced this pull request Sep 7, 2018
miguelsousa added a commit that referenced this pull request Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants