Skip to content

Fix Tests' AttributeError in Python 3.9 with base64.decodestring#210

Merged
kitchoi merged 3 commits into
masterfrom
fix-removed-decodestring
Nov 16, 2020
Merged

Fix Tests' AttributeError in Python 3.9 with base64.decodestring#210
kitchoi merged 3 commits into
masterfrom
fix-removed-decodestring

Conversation

@kitchoi
Copy link
Copy Markdown
Contributor

@kitchoi kitchoi commented Nov 16, 2020

Closes #209

base64.decodestring is deprecated in 3.1, and has been an alias of decodebytes

I searched the code base of apptools and it has only been used in tests. This PR fixes that particular tests.
Since we don't yet run against Python 3.9 on CI, I ran the test suite locally to verify it passes on Python 3.9 and OSX.

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst)

While this may not be news worthy for developers using apptools, this is perhaps news worthy for distribution packagers who run package test suites against their systems (that is, if they also have all the optional dependencies e.g. pytables, but that is an orthogonal issue.)

base64.decodestring is deprecated in 3.1, and has been an alias of decodebytes
Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kitchoi kitchoi merged commit feaf620 into master Nov 16, 2020
@kitchoi kitchoi deleted the fix-removed-decodestring branch November 16, 2020 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failures for apptools.persistence on Python 3.9

2 participants