summaryrefslogtreecommitdiff
path: root/taskflow/tests/unit/action_engine
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2015-03-02 18:49:17 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2015-03-02 19:07:42 -0800
commitb598897d15b727d2fe7b32782d777a233d196b1d (patch)
tree6458cbb6476b29b0c32b4159334dd6735a6f0afb /taskflow/tests/unit/action_engine
parentd4f02f6fea299a2e9184f89861f735398cc44498 (diff)
downloadtaskflow-b598897d15b727d2fe7b32782d777a233d196b1d.tar.gz
Tweak functor used to find flatteners/storage routines
Make both of these finding functions use similar routines that the utility module now provides since the logic that both use can be shared. Change-Id: Ib941b99945d42f5c0d791e9b2a0696d0e62a2388
Diffstat (limited to 'taskflow/tests/unit/action_engine')
-rw-r--r--taskflow/tests/unit/action_engine/test_compile.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/taskflow/tests/unit/action_engine/test_compile.py b/taskflow/tests/unit/action_engine/test_compile.py
index a290c50..445fd7c 100644
--- a/taskflow/tests/unit/action_engine/test_compile.py
+++ b/taskflow/tests/unit/action_engine/test_compile.py
@@ -34,9 +34,7 @@ class PatternCompileTest(test.TestCase):
def test_retry(self):
r = retry.AlwaysRevert('r1')
- msg_regex = "^Retry controller .* must only be used .*"
- self.assertRaisesRegexp(TypeError, msg_regex,
- compiler.PatternCompiler(r).compile)
+ self.assertRaises(TypeError, compiler.PatternCompiler(r).compile)
def test_wrong_object(self):
msg_regex = '^Unknown item .* requested to flatten'