Skip to content

Commit 215a049

Browse files
committed
Added in a regression test for issue pandas-dev#25257. Verified that it fails on version 0.24.1 but passes on current version
1 parent 78d8af1 commit 215a049

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/tests/dtypes/test_concat.py

+10
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,13 @@ def test_concat_mismatched_categoricals_with_empty():
8888
result = _concat.concat_compat([ser1._values, ser2._values])
8989
expected = pd.concat([ser1, ser2])._values
9090
tm.assert_categorical_equal(result, expected)
91+
92+
#This will raise a ValueError issue if it fails
93+
#Regression test for issue 25257
94+
def test_no_tz_concat_without_copy():
95+
df = pd.DataFrame({
96+
'timestamp': [pd.Timestamp('2020-04-08 09:00:00.709949+0000', tz='UTC')],
97+
})
98+
pd.concat([df], copy=False)
99+
100+

0 commit comments

Comments
 (0)