-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure client generation works smoothly in py3.
It turns out that generated clients had a few issues in python3: * the discovery doc was returned as bytes, but `json.loads` wanted a string * in python3, source files should be strings, not bytes * \N, \u, and \U have special interpretations in python3 strings, which makes them invalid bare sequences in a docstring. This commit updates these and re-enables tests for python3. The only remaining py2-only check is the "did we generate the exact same source file" check, which fails for trivial reasons (eg u'foo' vs. 'foo') for python3. Since there are no more python27-only tests, I removed the "disable test in 2.7" helper.
- Loading branch information
1 parent
ed6f279
commit d475ca9
Showing
5 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters