Skip to content

Commit cf9fc6a

Browse files
committed
test internal warning raises
1 parent 0d48c9c commit cf9fc6a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/run_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then
2424
XVFB="xvfb-run "
2525
fi
2626

27-
PYTEST_CMD="${XVFB}pytest -r fEs -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET"
27+
PYTEST_CMD="${XVFB}pytest -r fEs -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE pandas/tests/test_common.py"
2828

2929
if [[ "$PATTERN" ]]; then
3030
PYTEST_CMD="$PYTEST_CMD -m \"$PATTERN\""

pandas/core/common.py

+3
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ def standardize_mapping(into):
380380
DataFrame.to_dict
381381
Series.to_dict
382382
"""
383+
import warnings
384+
385+
warnings.warn("Should raise", UserWarning)
383386
if not inspect.isclass(into):
384387
if isinstance(into, defaultdict):
385388
return partial(defaultdict, into.default_factory)

0 commit comments

Comments
 (0)