You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lc...@apache.org on 2021/08/17 17:00:57 UTC

[beam] branch master updated: [BEAM-12768] Make the test less strict and instead match on substring (#15341)

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

lcwik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fb6aad  [BEAM-12768] Make the test less strict and instead match on substring (#15341)
3fb6aad is described below

commit 3fb6aada083554e45a964daa0b3491c2f77dde5c
Author: Lukasz Cwik <lu...@gmail.com>
AuthorDate: Tue Aug 17 10:00:13 2021 -0700

    [BEAM-12768] Make the test less strict and instead match on substring (#15341)
---
 sdks/python/apache_beam/dataframe/frames_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/dataframe/frames_test.py b/sdks/python/apache_beam/dataframe/frames_test.py
index 6924745..a2703d8 100644
--- a/sdks/python/apache_beam/dataframe/frames_test.py
+++ b/sdks/python/apache_beam/dataframe/frames_test.py
@@ -95,7 +95,7 @@ class _AbstractFrameTest(unittest.TestCase):
 
     # Verify
     if (not isinstance(actual, type(expected_error)) or
-        not str(actual) == str(expected_error)):
+        str(expected_error) not in str(actual)):
       raise AssertionError(
           f'Expected {expected_error!r} to be raised, but got {actual!r}'
       ) from actual