diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-02 10:37:15 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-02 10:37:15 +0000 |
commit | 275bd96aa67ce2bf1c1f57cb5c2cb840d3afbb2d (patch) | |
tree | 550384d874614b8056facdc1e354f2fb762ee6e6 /Lib/test/test_bytes.py | |
parent | 3464ea2807b6ba2d132ef27b65535116ab993eba (diff) | |
download | cpython-git-275bd96aa67ce2bf1c1f57cb5c2cb840d3afbb2d.tar.gz |
Issue #19587: Remove masked and redundant tests in test_bytes
* test_contains() did not override anything
* test_expandtabs/upper/lower() in FixedStringTest were masking usable tests
in string_tests. These tests now get run for bytearray() and bytes().
* test_expandtabs/upper/lower() in buffer_tests were only run on bytearray()
and are redundant with string_tests
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r-- | Lib/test/test_bytes.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index caf28fd346..bc1bf79ead 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -1467,24 +1467,11 @@ class BytearrayPEP3137Test(unittest.TestCase, class FixedStringTest(test.string_tests.BaseTest): - def fixtype(self, obj): if isinstance(obj, str): return obj.encode("utf-8") return super().fixtype(obj) - # Currently the bytes containment testing uses a single integer - # value. This may not be the final design, but until then the - # bytes section with in a bytes containment not valid - def test_contains(self): - pass - def test_expandtabs(self): - pass - def test_upper(self): - pass - def test_lower(self): - pass - class ByteArrayAsStringTest(FixedStringTest, unittest.TestCase): type2test = bytearray contains_bytes = True |