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

make tests work with C locale

parent 0671f83d
Pipeline #3930 passed with stages
in 9 minutes and 7 seconds
......@@ -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 = f.read()
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:
warnings.simplefilter("always")
......
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