Commit 73231c91 authored by Christoph Groth's avatar Christoph Groth
Browse files

make test pass when run under python -O

parent 4d03b823
......@@ -18,7 +18,7 @@ if plotter.mpl_enabled:
def test_importable_without_matplotlib():
prefix, sep, suffix = plotter.__file__.rpartition('.')
if suffix == 'pyc':
if suffix in ['pyc', 'pyo']:
suffix = 'py'
assert suffix == 'py'
fname = sep.join((prefix, suffix))
......
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