Mercurial > hgrepos > Python2 > PyMuPDF
view tests/test_4716.py @ 44:0a8b06e38e19
Need "packaging" at wheel build time too.
Parsing of version_p into a tuple now is done at build time.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Oct 2025 17:16:23 +0200 |
| parents | a6bc019ac0b2 |
| children |
line wrap: on
line source
import pymupdf import os def test_4716(): """Confirm that ZERO WIDTH JOINER will never start a word.""" script_dir = os.path.dirname(__file__) filename = os.path.join(script_dir, "resources", "test_4716.pdf") doc = pymupdf.open(filename) expected = set(["+25.00", "Любимый", "-10.00"]) word_text = set() for page in doc: words = page.get_text("words") for w in words: word_text.add(w[4]) assert word_text == expected
