Skip to content
Snippets Groups Projects
Commit dd4308eb authored by Pierre LALET's avatar Pierre LALET
Browse files

Rename test_pyx to _test_pyx to "hide" it

parent 40d62678
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ except (ImportError, RuntimeError): ...@@ -27,7 +27,7 @@ except (ImportError, RuntimeError):
MATPLOTLIB_DEFAULT_PLOT_KARGS = dict() MATPLOTLIB_DEFAULT_PLOT_KARGS = dict()
log_loading.info("Can't import matplotlib. Won't be able to plot.") log_loading.info("Can't import matplotlib. Won't be able to plot.")
def test_pyx(): def _test_pyx():
"""Returns if PyX is correctly installed or not""" """Returns if PyX is correctly installed or not"""
try: try:
with open(os.devnull, 'wb') as devnull: with open(os.devnull, 'wb') as devnull:
...@@ -39,7 +39,7 @@ def test_pyx(): ...@@ -39,7 +39,7 @@ def test_pyx():
try: try:
import pyx import pyx
if test_pyx(): if _test_pyx():
PYX = 1 PYX = 1
else: else:
log_loading.warning("PyX dependencies are not installed ! Please install TexLive or MikTeX.") log_loading.warning("PyX dependencies are not installed ! Please install TexLive or MikTeX.")
......
...@@ -9148,8 +9148,8 @@ test_afterglow() ...@@ -9148,8 +9148,8 @@ test_afterglow()
= psdump() = psdump()
print(test_pyx()) print("PYX: %d" % PYX)
if test_pyx(): if PYX:
import tempfile import tempfile
import os import os
filename = tempfile.mktemp(suffix=".ps") filename = tempfile.mktemp(suffix=".ps")
...@@ -9160,8 +9160,8 @@ if test_pyx(): ...@@ -9160,8 +9160,8 @@ if test_pyx():
= pdfdump() = pdfdump()
print(test_pyx()) print("PYX: %d" % PYX)
if test_pyx(): if PYX:
import tempfile import tempfile
import os import os
filename = tempfile.mktemp(suffix=".pdf") filename = tempfile.mktemp(suffix=".pdf")
......
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