diff options
author | Picca Frédéric-Emmanuel <picca@debian.org> | 2018-08-02 20:54:28 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2018-08-02 20:54:28 +0200 |
commit | 0c737c7331790e9825a69d65b26d08075aded68a (patch) | |
tree | cad7520f2899b8bd84abca0526f32da32eb6b90b /PyMca5/tests | |
parent | a9695cd9edb7b272e0b2dcd20882c2580dd9fb61 (diff) |
New upstream version 5.3.2+dfsg
Diffstat (limited to 'PyMca5/tests')
-rw-r--r-- | PyMca5/tests/XrfTest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PyMca5/tests/XrfTest.py b/PyMca5/tests/XrfTest.py index 1c3b13b..8f97429 100644 --- a/PyMca5/tests/XrfTest.py +++ b/PyMca5/tests/XrfTest.py @@ -317,8 +317,8 @@ class testXrf(unittest.TestCase): self.assertTrue(referenceElement == "Co", "referenceElement is <%s> instead of <Co>" % referenceElement) cobalt = concentrationsResult["mass fraction"]["Co K"] - self.assertTrue( cobalt == 0.0005, - "Wrong Co concentration %f" % cobalt) + self.assertTrue( abs(cobalt-0.0005) < 1.0E-7, + "Wrong Co concentration %f expected 0.0005" % cobalt) # we should get the same result with internal parameters cTool = ConcentrationsTool.ConcentrationsTool() |