You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by mi...@apache.org on 2019/05/29 10:22:00 UTC

[beam] 01/01: Merge pull request #8612: [BEAM-7101] Remove usages of deprecated self.assertEquals in Python codebase

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

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

commit 5623d8b850b8898f057107c547c96083d4e78210
Merge: cd8c6ec c552ce1
Author: Michael Luckey <25...@users.noreply.github.com>
AuthorDate: Wed May 29 12:21:42 2019 +0200

    Merge pull request #8612: [BEAM-7101] Remove usages of deprecated self.assertEquals in Python codebase

 sdks/python/apache_beam/coders/coders_test.py      | 10 +--
 sdks/python/apache_beam/coders/observable_test.py  |  6 +-
 sdks/python/apache_beam/coders/stream_test.py      | 46 +++++++-------
 .../apache_beam/internal/gcp/json_value_test.py    | 36 +++++------
 .../apache_beam/internal/http_client_test.py       | 24 +++----
 sdks/python/apache_beam/internal/pickler_test.py   | 24 +++----
 sdks/python/apache_beam/internal/util_test.py      | 20 +++---
 sdks/python/apache_beam/io/concat_source_test.py   | 74 +++++++++++-----------
 sdks/python/apache_beam/io/filebasedsource_test.py | 28 ++++----
 .../apache_beam/io/gcp/bigquery_tools_test.py      |  6 +-
 sdks/python/apache_beam/io/gcp/gcsio_test.py       |  2 +-
 .../python/apache_beam/io/hadoopfilesystem_test.py |  4 +-
 sdks/python/apache_beam/io/localfilesystem_test.py |  4 +-
 sdks/python/apache_beam/io/parquetio_test.py       |  6 +-
 .../apache_beam/io/source_test_utils_test.py       | 12 ++--
 sdks/python/apache_beam/pipeline_test.py           | 32 +++++-----
 .../runners/worker/sdk_worker_main_test.py         |  2 +-
 .../apache_beam/testing/synthetic_pipeline_test.py |  4 +-
 .../dataflow_distribution_counter_test.py          | 24 +++----
 sdks/python/apache_beam/transforms/trigger_test.py |  4 +-
 .../typehints/trivial_inference_test.py            |  2 +-
 .../apache_beam/typehints/typed_pipeline_test.py   |  2 +-
 .../python/apache_beam/typehints/typehints_test.py | 14 ++--
 23 files changed, 193 insertions(+), 193 deletions(-)

diff --cc sdks/python/apache_beam/typehints/typed_pipeline_test.py
index 7fb7a5a,b766090..e46f039
--- a/sdks/python/apache_beam/typehints/typed_pipeline_test.py
+++ b/sdks/python/apache_beam/typehints/typed_pipeline_test.py
@@@ -112,9 -112,13 +112,9 @@@ class MainInputTest(unittest.TestCase)
      def filter_fn(data):
        return data % 2
  
-     self.assertEquals([1, 3], [1, 2, 3] | beam.Filter(filter_fn))
+     self.assertEqual([1, 3], [1, 2, 3] | beam.Filter(filter_fn))
  
  
 -@unittest.skipIf(sys.version_info >= (3, 7, 0) and
 -                 os.environ.get('RUN_SKIPPED_PY3_TESTS') != '1',
 -                 'This test still needs to be fixed on Python 3.7. '
 -                 'See BEAM-6987')
  class NativeTypesTest(unittest.TestCase):
  
    def test_good_main_input(self):