Skip to content

Commit 3df63ef

Browse files
committed
WIP
1 parent 4659e60 commit 3df63ef

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ubuntu.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ on:
1212
paths-ignore:
1313
- "doc/**"
1414

15-
env:
16-
PANDAS_CI: 1
17-
PYTEST_TARGET: pandas
18-
1915
jobs:
2016
pytest:
2117
runs-on: ubuntu-latest
@@ -66,6 +62,7 @@ jobs:
6662
fail-fast: false
6763
name: ${{ matrix.name || format('{0} pyarrow={1} {2}', matrix.env_file, matrix.pyarrow_version, matrix.pattern) }}
6864
env:
65+
PANDAS_CI: 1
6966
ENV_FILE: ci/deps/${{ matrix.env_file }}
7067
PATTERN: ${{ matrix.pattern }}
7168
EXTRA_APT: ${{ matrix.extra_apt || '' }}

pandas/tests/arithmetic/test_datetime64.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1298,9 +1298,7 @@ def test_dti_add_tick_tzaware(self, tz_aware_fixture, box_with_array):
12981298
roundtrip = offset - scalar
12991299
tm.assert_equal(roundtrip, dates)
13001300

1301-
msg = "|".join(
1302-
["bad operand type for unary -", "cannot subtract DatetimeArray"]
1303-
)
1301+
msg = "cannot subtract|(bad|unsupported) operand type for unary"
13041302
with pytest.raises(TypeError, match=msg):
13051303
scalar - dates
13061304

@@ -1915,7 +1913,7 @@ def test_datetime64_ops_nat(self):
19151913

19161914
# subtraction
19171915
tm.assert_series_equal(-NaT + datetime_series, nat_series_dtype_timestamp)
1918-
msg = "bad operand type for unary -: 'DatetimeArray'"
1916+
msg = "(bad|unsupported) operand type for unary"
19191917
with pytest.raises(TypeError, match=msg):
19201918
-single_nat_dtype_datetime + datetime_series
19211919

0 commit comments

Comments
 (0)