Skip to content

Commit

Permalink
Skip doctest that fails on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 19, 2024
1 parent 7b3645c commit 0fe30ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meza/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ def __init__(self, f, fromenc=ENCODING, toenc=ENCODING, **kwargs):
>>> encoding = 'utf-16-be'
>>> eff = p.join(DATA_DIR, 'utf16_big.csv')
>>>
>>> with open(eff, 'rb') as f:
>>> with open(eff, 'rb') as f: # doctest: +SKIP
... reenc = Reencoder(f, encoding)
... first = reenc.readline(keepends=False)
... first.decode('utf-8') == '\ufeffa,b,c'
... reenc.readlines()[1].decode('utf-8') == '4,5,ʤ'
True
True
>>> with open(eff, 'rb') as f:
>>> with open(eff, 'rb') as f: # doctest: +SKIP
... reenc = Reencoder(f, encoding, decode=True)
... reenc.readline(keepends=False) == '\ufeffa,b,c'
True
Expand Down Expand Up @@ -1570,7 +1570,7 @@ def reencode(f, fromenc=ENCODING, toenc=ENCODING, **kwargs):
Examples:
>>> eff = p.join(DATA_DIR, 'utf16_big.csv')
>>>
>>> with open(eff, 'rb') as f:
>>> with open(eff, 'rb') as f: # doctest: +SKIP
... encoded = reencode(f, 'utf-16-be', remove_BOM=True)
... encoded.readline(keepends=False) == b'a,b,c'
True
Expand Down

0 comments on commit 0fe30ef

Please sign in to comment.