Skip to content

Commit ee18288

Browse files
Backport PR pandas-dev#38209: CI/TST: fix CI with numpy dev for changed error message / dev version (pandas-dev#38231)
Co-authored-by: Joris Van den Bossche <[email protected]>
1 parent 8846913 commit ee18288

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/tests/series/indexing/test_indexing.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ def test_2d_to_1d_assignment_raises():
369369

370370
msg = "|".join(
371371
[
372-
r"shape mismatch: value array of shape \(2,2\) could not be "
373-
r"broadcast to indexing result of shape \(2,\)",
372+
r"shape mismatch: value array of shape \(2,2\)",
374373
r"cannot reshape array of size 4 into shape \(2,\)",
375374
]
376375
)

pandas/tests/util/test_show_versions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_show_versions(capsys):
3939
assert re.search(r"commit\s*:\s[0-9a-f]{40}\n", result)
4040

4141
# check required dependency
42-
assert re.search(r"numpy\s*:\s([0-9\.\+a-f]|dev)+\n", result)
42+
assert re.search(r"numpy\s*:\s([0-9\.\+a-f\_]|dev)+\n", result)
4343

4444
# check optional dependency
4545
assert re.search(r"pyarrow\s*:\s([0-9\.]+|None)\n", result)

0 commit comments

Comments
 (0)