Skip to content

Commit

Permalink
FIx test failure due to older Python
Browse files Browse the repository at this point in the history
Refs #11188
  • Loading branch information
DanNixon committed Mar 2, 2015
1 parent 0ee3029 commit 0022145
Showing 1 changed file with 13 additions and 12 deletions.
Expand Up @@ -137,18 +137,19 @@ def test_validationNoCanFormula(self):
Tests validation for no chemical formula for can when a can WS is provided.
"""

with self.assertRaises(RuntimeError):
FlatPlatePaalmanPingsCorrection(OutputWorkspace=self._corrections_ws_name,
SampleWorkspace=self._sample_ws,
SampleChemicalFormula='H2-O',
SampleThickness=0.1,
SampleAngle=45,
CanWorkspace=self._can_ws,
CanFrontThickness=0.1,
CanBackThickness=0.1,
NumberWavelengths=10,
Emode='Indirect',
Efixed=1.845)
self.assertRaises(RuntimeError,
FlatPlatePaalmanPingsCorrection,
OutputWorkspace=self._corrections_ws_name,
SampleWorkspace=self._sample_ws,
SampleChemicalFormula='H2-O',
SampleThickness=0.1,
SampleAngle=45,
CanWorkspace=self._can_ws,
CanFrontThickness=0.1,
CanBackThickness=0.1,
NumberWavelengths=10,
Emode='Indirect',
Efixed=1.845)


if __name__=="__main__":
Expand Down

0 comments on commit 0022145

Please sign in to comment.