diff options
author | James R. Barlow <jim@purplerock.ca> | 2018-09-19 01:30:53 -0700 |
---|---|---|
committer | James R. Barlow <jim@purplerock.ca> | 2018-09-19 01:30:53 -0700 |
commit | 1fc176b1e1bac0a7dc789c7123fc50b874fb62be (patch) | |
tree | 457a09bcb8aac10f51e4a48c443721e1705bf684 /tests | |
parent | 01ca27f1a3716277fe89da0a78c9ea1eb8141ad0 (diff) |
Fix Mock() missing assert_called() in Py3.5
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pdf.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_pdf.py b/tests/test_pdf.py index 57c2ed6..d7b6042 100644 --- a/tests/test_pdf.py +++ b/tests/test_pdf.py @@ -5,6 +5,7 @@ Testing focused on pikepdf.Pdf import pytest from pikepdf import Pdf, PasswordError, Stream +import sys from io import StringIO from unittest.mock import Mock @@ -107,6 +108,8 @@ def test_show_xref(resources): pdf.show_xref_table() +@pytest.mark.skipif(sys.version_info < (3, 6), + reason='missing mock.assert_called') def test_progress(resources, outdir): pdf = Pdf.open(resources / 'pal-1bit-trivial.pdf') mock = Mock() |