From 5a4ca48f553dd9fa715cd5e8243e520f2a28c7f5 Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Tue, 19 Jul 2016 20:34:02 +0200 Subject: [PATCH] Make sure there are no problems is PyMca is not installed. --- python/fisx/tests/testEPDL97.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python/fisx/tests/testEPDL97.py b/python/fisx/tests/testEPDL97.py index 106bdf6..67d3596 100644 --- a/python/fisx/tests/testEPDL97.py +++ b/python/fisx/tests/testEPDL97.py @@ -173,11 +173,12 @@ def getSuite(auto=True): else: # use a predefined order testSuite.addTest(testEPDL97("testEPDL97Import")) - testSuite.addTest(testEPDL97("testEPDL97BindingVersusPyMcaEPDL97Binding")) - testSuite.addTest(\ - testEPDL97("testEPDL97MuVersusPyMcaEPDL97Mu")) - testSuite.addTest(\ - testEPDL97("testEPDL97PartialVersusPyMcaPartial")) + if PYMCA: + testSuite.addTest(testEPDL97("testEPDL97BindingVersusPyMcaEPDL97Binding")) + testSuite.addTest(\ + testEPDL97("testEPDL97MuVersusPyMcaEPDL97Mu")) + testSuite.addTest(\ + testEPDL97("testEPDL97PartialVersusPyMcaPartial")) return testSuite def test(auto=False):