Skip to content

Commit a98cbcb

Browse files
julian-smith-artifex-comJorjMcKie
authored andcommitted
tests/: Fix excluded test_rtl().
Renamed tests/test-rtl.py -> tests/test_rtl.py so it is run by pytest, and fixed document path in test_rtl().
1 parent 329c4a0 commit a98cbcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import pymupdf
22

3+
import os
4+
35

46
def test_rtl():
5-
doc = pymupdf.open("resources/test-E+A.pdf")
7+
path = os.path.normpath(f'{__file__}/../../tests/resources/test-E+A.pdf')
8+
doc = pymupdf.open(path)
69
page = doc[0]
710
# set of all RTL characters
811
rtl_chars = set([chr(i) for i in range(0x590, 0x901)])

0 commit comments

Comments
 (0)