Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: drop support for Python 2.7 / 3.5 #212

Merged
merged 28 commits into from Aug 3, 2021
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
21ac69a
fix!: drop support for Python 2.7 and 3.5
tseaver Jun 15, 2021
78caa92
chore: drop 'six' module
tseaver Jun 15, 2021
35c8216
chore: drop 'u"' prefixes for text
tseaver Jun 15, 2021
35ba7d3
chore: remove other Python 2.7 workarounds
tseaver Jun 15, 2021
61490f5
chore: drop use of 'pytz'
tseaver Jun 15, 2021
74c6179
Merge branch 'master' into 210-drop-python-2.7
tseaver Jun 16, 2021
6e21b01
tests: scrub more 2.7 / six constraints
tseaver Jun 16, 2021
fe7d454
docs: add section on unspported Python versions to README
tseaver Jun 16, 2021
d77fbb0
chore: drop workaround for Python 2.7
tseaver Jun 16, 2021
440e571
chore: remove 'general_helpers.wraps'
tseaver Jun 16, 2021
90c1bd1
chore: note URL for follow-up issue
tseaver Jun 16, 2021
026ee31
chore: remove Python 2-specific kwargs hack
tseaver Jun 16, 2021
4165633
chore: drop Python2-specific alias
tseaver Jun 16, 2021
ad7b40b
chore: drop Python2-specific aliases
tseaver Jun 16, 2021
dbc234f
chore: drop Python2-specific aliases
tseaver Jun 16, 2021
4d87012
Merge branch 'master' into 210-drop-python-2.7
tseaver Jun 30, 2021
c480784
Merge branch 'master' into 210-drop-python-2.7
tseaver Jul 7, 2021
72d175b
chore: remove 'packaging' dependency
tseaver Jul 7, 2021
01b49c4
Merge branch 'master' into 210-drop-python-2.7
tseaver Jul 14, 2021
0f6a745
🦉 Updates from OwlBot
gcf-owl-bot[bot] Jul 14, 2021
cff328f
chore: switch to microgenerator to avoid 2.7 reappearing
tseaver Jul 14, 2021
3a66b33
chore: expand range to allow 'google-auth' 2.x versions
tseaver Jul 14, 2021
690a971
Merge branch 'master' into 210-drop-python-2.7
tseaver Jul 23, 2021
dc30a49
Merge branch 'master' into 210-drop-python-2.7
tseaver Jul 27, 2021
9c9a9a5
docs: sync newest version w/ Python 2.7 support
tseaver Jul 27, 2021
01d4c8f
chore: drop comment referring to Python 2.7 / pytypes
tseaver Aug 1, 2021
895d895
chore: remove mentions of Python 2.7 from docs
tseaver Aug 1, 2021
556ff21
🦉 Updates from OwlBot
gcf-owl-bot[bot] Aug 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/unit/test_exceptions.py
Expand Up @@ -138,15 +138,15 @@ def test_from_http_response_bad_json_content():
def test_from_http_response_json_unicode_content():
response = make_response(
json.dumps(
{"error": {"message": u"\u2019 message", "errors": ["1", "2"]}}
{"error": {"message": "\u2019 message", "errors": ["1", "2"]}}
).encode("utf-8")
)

exception = exceptions.from_http_response(response)

assert isinstance(exception, exceptions.NotFound)
assert exception.code == http.client.NOT_FOUND
assert exception.message == u"POST https://example.com/: \u2019 message"
tseaver marked this conversation as resolved.
Show resolved Hide resolved
assert exception.message == "POST https://example.com/: \u2019 message"
assert exception.errors == ["1", "2"]


Expand Down