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

TEST: added test case for issue 41800 #50677

Merged
merged 4 commits into from
Jan 12, 2023
Merged

Conversation

lpizzinidev
Copy link
Contributor

freq="H",
tz="Europe/Rome"
)
s1 = Series(np.random.random(10), index=time_index)
Copy link
Member

Choose a reason for hiding this comment

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

Could you use range(10) instead and then using tm.assert_series.equals instead of tm.assert_equal?


def test_combine_first_timezone_series_with_empty_series(self):
# GH 41800
time_index = pd.date_range(
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
time_index = pd.date_range(
time_index = date_range(

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Jan 12, 2023
@mroeschke mroeschke added this to the 2.0 milestone Jan 12, 2023
@mroeschke mroeschke merged commit 8b780b4 into pandas-dev:main Jan 12, 2023
@mroeschke
Copy link
Member

Thanks @lpizzinidev

phofl pushed a commit to phofl/pandas that referenced this pull request Jan 12, 2023
* TEST: added test case for issue 41800

addresses pandas-dev#41800

* fix lint error

* fix lint error

* added assert_series_equal control and changed date_range call
phofl pushed a commit to phofl/pandas that referenced this pull request Jan 13, 2023
* TEST: added test case for issue 41800

addresses pandas-dev#41800

* fix lint error

* fix lint error

* added assert_series_equal control and changed date_range call
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants