fix!: drop support for Python 2.7 (#778)
Drop use of 'six' wrapper library.
Drop 'u"' prefixes.
Drop support for app_engine 'classic' mode (Python 2.7-only).
Release-As: 2.0.0b1
Closes #777.
diff --git a/tests/test__helpers.py b/tests/test__helpers.py
index 0c0bad2..906cf12 100644
--- a/tests/test__helpers.py
+++ b/tests/test__helpers.py
@@ -13,9 +13,9 @@
# limitations under the License.
import datetime
+import urllib
import pytest
-from six.moves import urllib
from google.auth import _helpers
@@ -65,8 +65,8 @@
assert _helpers.to_bytes(value) == value
-def test_to_bytes_with_unicode():
- value = u"string-val"
+def test_to_bytes_with_text():
+ value = "string-val"
encoded_value = b"string-val"
assert _helpers.to_bytes(value) == encoded_value
@@ -76,14 +76,14 @@
_helpers.to_bytes(object())
-def test_from_bytes_with_unicode():
- value = u"bytes-val"
+def test_from_bytes_with_text():
+ value = "bytes-val"
assert _helpers.from_bytes(value) == value
def test_from_bytes_with_bytes():
value = b"string-val"
- decoded_value = u"string-val"
+ decoded_value = "string-val"
assert _helpers.from_bytes(value) == decoded_value