Skip to content

Commit 01070f3

Browse files
committed
disable pytest-xdist
1 parent 02bf20d commit 01070f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/unit-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
preload: LD_PRELOAD=$(gcc -print-file-name=libasan.so)
104104
meson_args: --config-settings=setup-args="-Db_sanitize=address,undefined"
105105
cflags_adds: -fno-sanitize-recover=all
106-
test_args: "-v"
106+
pytest_workers: -1 # disable pytest-xdist as it swallows stderr from ASAN
107107
fail-fast: false
108108
name: ${{ matrix.name || format('ubuntu-latest {0}', matrix.env_file) }}
109109
env:
@@ -113,7 +113,7 @@ jobs:
113113
PANDAS_COPY_ON_WRITE: ${{ matrix.pandas_copy_on_write || '0' }}
114114
PANDAS_CI: ${{ matrix.pandas_ci || '1' }}
115115
TEST_ARGS: ${{ matrix.test_args || '' }}
116-
PYTEST_WORKERS: 'auto'
116+
PYTEST_WORKERS: ${{ matrix.pytest_workers || 'auto' }}
117117
PYTEST_TARGET: ${{ matrix.pytest_target || 'pandas' }}
118118
# Clipboard tests
119119
QT_QPA_PLATFORM: offscreen

pandas/_libs/src/vendored/ujson/python/objToJSON.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2062,8 +2062,8 @@ PyObject *objToJSON(PyObject *Py_UNUSED(self), PyObject *args,
20622062
encoder->free(ret);
20632063
}
20642064

2065-
int myvar = INT_MAX;
2066-
printf("This value should overflow: %d\n", myvar + 1);
2065+
int someints[2] = {0, 1};
2066+
printf("the OOB value is: %d\n", someints[2]);
20672067

20682068
return newobj;
20692069
}

0 commit comments

Comments
 (0)