Commit 0a86321c authored by Christoph Groth's avatar Christoph Groth
Browse files

make tests work with C locale

parent 0671f83d
......@@ -31,10 +31,10 @@ def test_importable_without_matplotlib():
suffix = 'py'
assert suffix == 'py'
fname = sep.join((prefix, suffix))
with open(fname) as f:
with open(fname, 'rb') as f:
code =
code = code.replace('from . import', 'from kwant import')
code = code.replace('matplotlib', 'totalblimp')
code = code.replace(b'from . import', b'from kwant import')
code = code.replace(b'matplotlib', b'totalblimp')
with warnings.catch_warnings(record=True) as w:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment