diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-12-15 10:44:00 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-12-15 10:44:00 +0000 |
commit | cbaa3177ea546088c1383f1f01176754c19b52c2 (patch) | |
tree | 3edeeb4743263202ad18b15c5105e206647bfffb /python/subunit/tests/test_chunked.py | |
parent | 01682c1dcfd5fa92f08c00437fadb4650b8d4bf9 (diff) | |
download | subunit-git-cbaa3177ea546088c1383f1f01176754c19b52c2.tar.gz |
Stop using io imports from testtools
We no longer need to worry about Python 2, so we can just import
directly from 'io'.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'python/subunit/tests/test_chunked.py')
-rw-r--r-- | python/subunit/tests/test_chunked.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/python/subunit/tests/test_chunked.py b/python/subunit/tests/test_chunked.py index 46cf150..21f4814 100644 --- a/python/subunit/tests/test_chunked.py +++ b/python/subunit/tests/test_chunked.py @@ -7,7 +7,7 @@ # license at the users choice. A copy of both licenses are available in the # project source as Apache-2.0 and BSD. You may not use this file except in # compliance with one of these two licences. -# +# # Unless required by applicable law or agreed to in writing, software # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -15,13 +15,10 @@ # limitations under that license. # +from io import BytesIO import unittest from testtools.compat import _b -try: - from testtools.compat import BytesIO -except ImportError: - from io import BytesIO import subunit.chunked |