Skip to content
Snippets Groups Projects
Commit 73231c91 authored by Christoph Groth's avatar Christoph Groth
Browse files

make test pass when run under python -O

parent 4d03b823
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment