This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch tvalentyn-patch-1
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 27f46246ea23d3660c31f45d10dbc6b96e35305d
Author: tvalentyn <tvalen...@users.noreply.github.com>
AuthorDate: Tue Oct 8 12:00:43 2019 -0700

    Use assertIn for inclusion check.
---
 sdks/python/apache_beam/runners/portability/portable_runner_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/sdks/python/apache_beam/runners/portability/portable_runner_test.py 
b/sdks/python/apache_beam/runners/portability/portable_runner_test.py
index 9075a83..80afea7 100644
--- a/sdks/python/apache_beam/runners/portability/portable_runner_test.py
+++ b/sdks/python/apache_beam/runners/portability/portable_runner_test.py
@@ -335,8 +335,8 @@ class PortableRunnerInternalTest(unittest.TestCase):
           'environment_type': "EXTERNAL",
           'environment_config': '{"params":{"test":"test"}}',
       }))
-    self.assertTrue(
-        'External environment endpoint must be set.'in ctx.exception.args)
+    self.assertIn(
+        'External environment endpoint must be set.', ctx.exception.args)
 
 
 def hasDockerImage():

Reply via email to