Skip to content

Fix etree imports for py3.9-readiness - #2015

Merged
nateprewitt merged 2 commits into
boto:developfrom
caje731:develop
Aug 25, 2020
Merged

nateprewitt merged 2 commits into
boto:developfrom
caje731:develop

Conversation

@caje731

@caje731 caje731 commented Apr 12, 2020

Copy link
Copy Markdown
Contributor

Fixes #2002

@caje731

caje731 commented Apr 12, 2020 •

Copy link
Copy Markdown
Contributor Author

From the failing test in tests/functional/retries/test_bucket.py:

         mean = sum(distribution) / float(len(distribution))
         # We can't really rely on any guarantees about evenly distributing
         # thread acquisition(), e.g. must be with a 2 stddev range, but we
         # can sanity check that our implementation isn't drastically
         # starving a thread.  So we'll arbitrarily say that a thread
         # can't have less than 30% of the mean allocations per thread.
         self.assertTrue(not any(x < (0.3 * mean) for x in distribution))

Seems to be a probabilistic test introduced this January, and is not guaranteed to pass - in fact I see more than one other PR failing due to this unrelated test. IMO this test case warrants fixing too (through another PR?)

@nateprewitt nateprewitt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @caje731, thanks for putting this together! I've left a couple comments when you have a moment, let me know what you think.

Comment thread botocore/compat.py Resolved
Comment thread botocore/handlers.py Resolved
Comment thread botocore/parsers.py Resolved
Comment thread tests/functional/retries/test_bucket.py Resolved
@codecov-commenter

codecov-commenter commented Jun 3, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #2015 into develop will increase coverage by 0.12%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2015      +/-   ##
===========================================
+ Coverage    92.97%   93.09%   +0.12%     
===========================================
  Files           60       60              
  Lines        10862    11114     +252     
===========================================
+ Hits         10099    10347     +248     
- Misses         763      767       +4     
Impacted Files Coverage Δ
botocore/response.py 92.64% <ø> (-0.11%) ⬇️
botocore/compat.py 94.31% <60.00%> (-1.01%) ⬇️
botocore/handlers.py 96.37% <100.00%> (-0.16%) ⬇️
botocore/parsers.py 99.42% <100.00%> (+<0.01%) ⬆️
botocore/endpoint.py 98.03% <0.00%> (-0.66%) ⬇️
botocore/utils.py 98.31% <0.00%> (-0.03%) ⬇️
botocore/discovery.py 100.00% <0.00%> (ø)
botocore/serialize.py 100.00% <0.00%> (ø)
botocore/eventstream.py 100.00% <0.00%> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10d5e95...ac70e8f. Read the comment docs.

Comment thread botocore/handlers.py Resolved

@tremble tremble left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Another typo, but for what little it's worth otherwise looks sane to me

Comment thread botocore/compat.py Resolved

@nateprewitt nateprewitt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the updates, @caje731! I think this is looking pretty good now 🎉

@nateprewitt
nateprewitt merged commit c168486 into boto:develop Aug 25, 2020
aws-sdk-python-automation added a commit that referenced this pull request Aug 26, 2020
* release-1.17.49:
  Bumping version to 1.17.49
  Update to latest endpoints
  Update to latest models
  Fix etree imports for py3.9-readiness (#2015)
  Add paginators extra for route53resolver
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.

xml.etree.cElementTree removed from Python 3.9

4 participants