You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ro...@apache.org on 2017/01/18 21:58:35 UTC

[2/2] beam git commit: Fix Incorrect Split in Test Pipeline Test

Fix Incorrect Split in Test Pipeline Test


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/d8d3b4e3
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/d8d3b4e3
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/d8d3b4e3

Branch: refs/heads/python-sdk
Commit: d8d3b4e396c8604ca880fa8b61ff740da90b3cb2
Parents: 678da7a
Author: Mark Liu <ma...@google.com>
Authored: Tue Jan 17 11:54:02 2017 -0800
Committer: Robert Bradshaw <ro...@gmail.com>
Committed: Wed Jan 18 13:58:23 2017 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/test_pipeline_test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/d8d3b4e3/sdks/python/apache_beam/test_pipeline_test.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/test_pipeline_test.py b/sdks/python/apache_beam/test_pipeline_test.py
index c6bdba3..c4bcc01 100644
--- a/sdks/python/apache_beam/test_pipeline_test.py
+++ b/sdks/python/apache_beam/test_pipeline_test.py
@@ -89,7 +89,8 @@ class TestPipelineTest(unittest.TestCase):
   def test_append_verifier_in_extra_opt(self):
     extra_opt = {'matcher': SimpleMatcher()}
     opt_list = TestPipeline().get_full_options_as_args(**extra_opt)
-    matcher = pickler.loads(opt_list[0].split('=')[1])
+    _, value = opt_list[0].split('=', 1)
+    matcher = pickler.loads(value)
     self.assertTrue(isinstance(matcher, BaseMatcher))
     hc_assert_that(None, matcher)