Skip to content

TST: prepare conftest for #25637 #26596

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

Merged
merged 3 commits into from
Jun 1, 2019
Merged

Conversation

h-vetinari
Copy link
Contributor

@h-vetinari h-vetinari commented May 31, 2019

Split off from #25637 at the request of @gfyoung

Relevant discussions:

#25637 (comment)
#25637 (comment)

@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

Merging #26596 into master will decrease coverage by 50.15%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #26596       +/-   ##
===========================================
- Coverage   91.84%   41.69%   -50.16%     
===========================================
  Files         174      174               
  Lines       50644    50644               
===========================================
- Hits        46516    21116    -25400     
- Misses       4128    29528    +25400
Flag Coverage Δ
#multiple ?
#single 41.69% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-99.37%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.16%) ⬇️
pandas/io/sas/sas_xport.py 0% <0%> (-90.1%) ⬇️
pandas/core/tools/numeric.py 10.14% <0%> (-89.86%) ⬇️
pandas/io/s3.py 0% <0%> (-89.48%) ⬇️
... and 128 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 7f31865...7685370. Read the comment docs.

@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

Merging #26596 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26596      +/-   ##
==========================================
- Coverage   91.84%   91.84%   -0.01%     
==========================================
  Files         174      174              
  Lines       50644    50644              
==========================================
- Hits        46516    46512       -4     
- Misses       4128     4132       +4
Flag Coverage Δ
#multiple 90.37% <ø> (ø) ⬆️
#single 41.71% <ø> (-0.09%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 97% <0%> (-0.12%) ⬇️

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 7f31865...7685370. Read the comment docs.

@simonjayhawkins simonjayhawkins added Testing pandas testing functions or related to the test suite Timezones Timezone data dtype labels May 31, 2019
@h-vetinari
Copy link
Contributor Author

@gfyoung
Thanks for approving; CI is green. :)

@gfyoung gfyoung merged commit c6a7cc1 into pandas-dev:master Jun 1, 2019
@gfyoung gfyoung added this to the 0.25.0 milestone Jun 1, 2019
@@ -376,19 +376,25 @@ def unique_nulls_fixture(request):
FixedOffset(0), FixedOffset(-300), timezone.utc,
timezone(timedelta(hours=1)),
timezone(timedelta(hours=-1), name='foo')]
TIMEZONE_IDS = ['None', 'UTC', 'US/Eastern', 'Asia/Tokyp',
Copy link
Contributor

Choose a reason for hiding this comment

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

pls don’t merge things until i look

this is duplicating too much code here

Copy link
Contributor

Choose a reason for hiding this comment

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

what is the point of of these extras?

Copy link
Member

@gfyoung gfyoung Jun 1, 2019

Choose a reason for hiding this comment

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

@jreback : This is carried over from #25637 (and I think a lot of other conversations in other PR's), and the justification was given as a link in the PR description. I leave it here below for convenience:

#25637 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe so but that other has not been reviewed at all

Copy link
Contributor

Choose a reason for hiding this comment

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

this is not done in a nice way

these should simply be tuples of timezone and id and unpacked when needed

can u do a PR to fix

Copy link
Contributor

Choose a reason for hiding this comment

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

and to be honest these may not even be needed to do it like this it’s a lot more verbose

Copy link
Member

@gfyoung gfyoung Jun 1, 2019

Choose a reason for hiding this comment

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

The unpacking option seems to overcomplicate as you mentioned. Alternatively, we can just do a list comprehension and pull the __repr__ (or __str__) on the elements of TIMEZONES. That would still keep the IDs but be less "duplicative".

Copy link
Contributor

Choose a reason for hiding this comment

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

yes i think a nice function would be fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jreback: this is not done in a nice way

I disagree. Compare the outputs of @gfyoung's PR with the state I introduced.

I made the IDs explicit precisely because the strs/reprs yields a useless, ugly mix of stuff. Saving these 4 lines is not worth the added hassle when actually debugging tz-tests with pytest -v.

gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 1, 2019
@h-vetinari h-vetinari deleted the conftest_fixes branch June 1, 2019 15:14
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 1, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 2, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 3, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 3, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 4, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 5, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 5, 2019
gfyoung added a commit to forking-repos/pandas that referenced this pull request Jun 6, 2019
jreback pushed a commit that referenced this pull request Jun 6, 2019
vaibhavhrt pushed a commit to vaibhavhrt/pandas that referenced this pull request Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants