diff options
author | Yilei Yang <yileiyang@google.com> | 2022-05-06 09:34:22 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-06 09:34:51 -0700 |
commit | 14886acdf41f63f44c6bd79cf2ce7ad7eaec7d44 (patch) | |
tree | d43e8689e73ab53aa7e095fbe881ceba1a136170 /absl/testing | |
parent | ae7fd0931cb663bad093633ca2a527bde146e899 (diff) | |
download | absl-py-14886acdf41f63f44c6bd79cf2ce7ad7eaec7d44.tar.gz |
Remove the py2/py3 compatibility module _collections_abc.
PiperOrigin-RevId: 447005334
Change-Id: Iea86a969093640a18663d3d135648329c45e9954
Diffstat (limited to 'absl/testing')
-rw-r--r-- | absl/testing/BUILD | 3 | ||||
-rw-r--r-- | absl/testing/absltest.py | 2 | ||||
-rw-r--r-- | absl/testing/parameterized.py | 6 | ||||
-rw-r--r-- | absl/testing/tests/parameterized_test.py | 2 |
4 files changed, 3 insertions, 10 deletions
diff --git a/absl/testing/BUILD b/absl/testing/BUILD index 6dbbaea..b608c8c 100644 --- a/absl/testing/BUILD +++ b/absl/testing/BUILD @@ -8,7 +8,6 @@ py_library( deps = [ ":_pretty_print_reporter", ":xml_reporter", - "//absl:_collections_abc", "//absl:app", "//absl/flags", "//absl/logging", @@ -34,7 +33,6 @@ py_library( visibility = ["//visibility:public"], deps = [ ":absltest", - "//absl:_collections_abc", ], ) @@ -225,7 +223,6 @@ py_test( deps = [ ":absltest", ":parameterized", - "//absl:_collections_abc", ], ) diff --git a/absl/testing/absltest.py b/absl/testing/absltest.py index 1303fd4..cebb1ca 100644 --- a/absl/testing/absltest.py +++ b/absl/testing/absltest.py @@ -18,6 +18,7 @@ This module contains base classes and high-level functions for Abseil-style tests. """ +from collections import abc import contextlib import difflib import enum @@ -55,7 +56,6 @@ except ImportError: from absl import app from absl import flags from absl import logging -from absl._collections_abc import abc from absl.testing import _pretty_print_reporter from absl.testing import xml_reporter diff --git a/absl/testing/parameterized.py b/absl/testing/parameterized.py index f318b98..ec6a529 100644 --- a/absl/testing/parameterized.py +++ b/absl/testing/parameterized.py @@ -204,10 +204,7 @@ as [asynctest](https://github.com/Martiusweb/asynctest): self.assertEqual(actual, expected) """ -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - +from collections import abc import functools import inspect import itertools @@ -215,7 +212,6 @@ import re import types import unittest -from absl._collections_abc import abc from absl.testing import absltest diff --git a/absl/testing/tests/parameterized_test.py b/absl/testing/tests/parameterized_test.py index 7f63d01..8acbd93 100644 --- a/absl/testing/tests/parameterized_test.py +++ b/absl/testing/tests/parameterized_test.py @@ -14,10 +14,10 @@ """Tests for absl.testing.parameterized.""" +from collections import abc import sys import unittest -from absl._collections_abc import abc from absl.testing import absltest from absl.testing import parameterized |