Bug#1002320: segyio: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.9" "--test-args=-o python_files=test/*" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Wed Dec 22 07:57:56 GMT 2021
Source: segyio
Version: 1.8.3-1.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> make[3]: Nothing to be done for 'preinstall'.
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> Install the project...
> /usr/bin/cmake -P cmake_install.cmake
> -- Install configuration: "None"
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libsegyio.so.1
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libsegyio.so
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/include
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/include/segyio
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/include/segyio/segy.h
> -- Old export file "/<<PKGBUILDDIR>>/debian/tmp/usr/share/segyio/cmake/segyio-config.cmake" will be replaced. Removing files [/<<PKGBUILDDIR>>/debian/tmp/usr/share/segyio/cmake/segyio-config-none.cmake].
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/share/segyio/cmake/segyio-config.cmake
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/segyio/cmake/segyio-config-none.cmake
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-cath
> -- Set runtime path of "/<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-cath" to ""
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-catb
> -- Set runtime path of "/<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-catb" to ""
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-catr
> -- Set runtime path of "/<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-catr" to ""
> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-crop
> -- Set runtime path of "/<<PKGBUILDDIR>>/debian/tmp/usr/bin/segyio-crop" to ""
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1/segyio-cath.1
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1/segyio-catb.1
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1/segyio-catr.1
> -- Up-to-date: /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1/segyio-crop.1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> dh_auto_build --buildsystem=pybuild -- \
> --build-args="build_ext --library-dirs /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu"
> I: pybuild base:237: /usr/bin/python3.10 setup.py build build_ext --library-dirs /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/open.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/segysampleformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/tools.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/trace.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/tracesortingformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/segy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/field.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/depth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/tracefield.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/binfield.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/line.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/create.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/gather.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su
> copying /<<PKGBUILDDIR>>/python/segyio/su/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su
> copying /<<PKGBUILDDIR>>/python/segyio/su/words.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su
> copying /<<PKGBUILDDIR>>/python/segyio/su/file.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su
> running build_ext
> building 'segyio._segyio' extension
> creating build
> creating build/temp.linux-x86_64-3.10
> creating build/temp.linux-x86_64-3.10/build
> creating build/temp.linux-x86_64-3.10/<<BUILDDIR>>
> creating build/temp.linux-x86_64-3.10/<<PKGBUILDDIR>>
> creating build/temp.linux-x86_64-3.10/<<PKGBUILDDIR>>/python
> creating build/temp.linux-x86_64-3.10/<<PKGBUILDDIR>>/python/segyio
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/lib/include -I/usr/include/python3.10 -c /<<PKGBUILDDIR>>/python/segyio/segyio.cpp -o build/temp.linux-x86_64-3.10/<<PKGBUILDDIR>>/python/segyio/segyio.o
> x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,--as-needed -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/<<PKGBUILDDIR>>/python/segyio/segyio.o -L/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu -lsegyio -lm -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/_segyio.cpython-310-x86_64-linux-gnu.so
> I: pybuild base:237: /usr/bin/python3 setup.py build build_ext --library-dirs /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/open.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/segysampleformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/tools.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/trace.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/tracesortingformat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/segy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/field.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/depth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/tracefield.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/binfield.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/line.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/create.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/gather.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> copying /<<PKGBUILDDIR>>/python/segyio/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su
> copying /<<PKGBUILDDIR>>/python/segyio/su/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su
> copying /<<PKGBUILDDIR>>/python/segyio/su/words.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su
> copying /<<PKGBUILDDIR>>/python/segyio/su/file.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su
> running build_ext
> building 'segyio._segyio' extension
> creating build/temp.linux-x86_64-3.9
> creating build/temp.linux-x86_64-3.9/build
> creating build/temp.linux-x86_64-3.9/<<BUILDDIR>>
> creating build/temp.linux-x86_64-3.9/<<PKGBUILDDIR>>
> creating build/temp.linux-x86_64-3.9/<<PKGBUILDDIR>>/python
> creating build/temp.linux-x86_64-3.9/<<PKGBUILDDIR>>/python/segyio
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/lib/include -I/usr/include/python3.9 -c /<<PKGBUILDDIR>>/python/segyio/segyio.cpp -o build/temp.linux-x86_64-3.9/<<PKGBUILDDIR>>/python/segyio/segyio.o
> x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,--as-needed -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.9/<<PKGBUILDDIR>>/python/segyio/segyio.o -L/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu -lsegyio -lm -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/_segyio.cpython-39-x86_64-linux-gnu.so
> dh_auto_install --buildsystem=pybuild
> I: pybuild base:237: /usr/bin/python3.10 setup.py install --root /<<PKGBUILDDIR>>/debian/python3-segyio
> running install
> /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
> warnings.warn(
> running build
> running build_py
> running build_ext
> running install_lib
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/open.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/_segyio.cpython-310-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/segysampleformat.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su/words.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/su/file.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/tools.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/trace.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/tracesortingformat.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/segy.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/field.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/depth.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/tracefield.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/binfield.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/line.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/create.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/gather.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/version.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/segyio/utils.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/__init__.py to __init__.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/open.py to open.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/segysampleformat.py to segysampleformat.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su/__init__.py to __init__.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su/words.py to words.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/su/file.py to file.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/tools.py to tools.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/trace.py to trace.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/tracesortingformat.py to tracesortingformat.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/segy.py to segy.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/field.py to field.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/depth.py to depth.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/tracefield.py to tracefield.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/binfield.py to binfield.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/line.py to line.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/create.py to create.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/gather.py to gather.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/version.py to version.cpython-310.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio/utils.py to utils.cpython-310.pyc
> running install_egg_info
> running egg_info
> creating /<<PKGBUILDDIR>>/python/segyio.egg-info
> writing /<<PKGBUILDDIR>>/python/segyio.egg-info/PKG-INFO
> writing dependency_links to /<<PKGBUILDDIR>>/python/segyio.egg-info/dependency_links.txt
> writing requirements to /<<PKGBUILDDIR>>/python/segyio.egg-info/requires.txt
> writing top-level names to /<<PKGBUILDDIR>>/python/segyio.egg-info/top_level.txt
> writing manifest file '/<<PKGBUILDDIR>>/python/segyio.egg-info/SOURCES.txt'
> reading manifest file '/<<PKGBUILDDIR>>/python/segyio.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '*.h' under directory 'src'
> writing manifest file '/<<PKGBUILDDIR>>/python/segyio.egg-info/SOURCES.txt'
> Copying /<<PKGBUILDDIR>>/python/segyio.egg-info to /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.10/dist-packages/segyio-1.8.3.egg-info
> Skipping SOURCES.txt
> running install_scripts
> I: pybuild base:237: /usr/bin/python3 setup.py install --root /<<PKGBUILDDIR>>/debian/python3-segyio
> running install
> /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
> warnings.warn(
> running build
> running build_py
> running build_ext
> running install_lib
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/open.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/_segyio.cpython-39-x86_64-linux-gnu.so -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/segysampleformat.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> creating /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su/words.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/su/file.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/tools.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/trace.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/tracesortingformat.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/segy.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/field.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/depth.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/tracefield.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/binfield.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/line.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/create.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/gather.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/version.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/segyio/utils.py -> /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/__init__.py to __init__.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/open.py to open.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/segysampleformat.py to segysampleformat.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su/__init__.py to __init__.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su/words.py to words.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/su/file.py to file.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/tools.py to tools.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/trace.py to trace.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/tracesortingformat.py to tracesortingformat.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/segy.py to segy.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/field.py to field.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/depth.py to depth.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/tracefield.py to tracefield.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/binfield.py to binfield.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/line.py to line.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/create.py to create.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/gather.py to gather.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/version.py to version.cpython-39.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio/utils.py to utils.cpython-39.pyc
> running install_egg_info
> running egg_info
> writing /<<PKGBUILDDIR>>/python/segyio.egg-info/PKG-INFO
> writing dependency_links to /<<PKGBUILDDIR>>/python/segyio.egg-info/dependency_links.txt
> writing requirements to /<<PKGBUILDDIR>>/python/segyio.egg-info/requires.txt
> writing top-level names to /<<PKGBUILDDIR>>/python/segyio.egg-info/top_level.txt
> reading manifest file '/<<PKGBUILDDIR>>/python/segyio.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '*.h' under directory 'src'
> writing manifest file '/<<PKGBUILDDIR>>/python/segyio.egg-info/SOURCES.txt'
> Copying /<<PKGBUILDDIR>>/python/segyio.egg-info to /<<PKGBUILDDIR>>/debian/python3-segyio/usr/lib/python3.9/dist-packages/segyio-1.8.3.egg-info
> Skipping SOURCES.txt
> running install_scripts
> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot \
> dh_auto_test --buildsystem=pybuild -- --test-args="-o python_files=test/*"
> I: pybuild pybuild:286: cp -r /<<PKGBUILDDIR>>/python/test /<<PKGBUILDDIR>>/test-data /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build; python3.10 -m pytest -o python_files=test/*
> ============================= test session starts ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 185 items
>
> test/segy.py EEEE...................................EE.................. [ 31%]
> ..........EEE......EEE.EEEEEEEEEEEEEEEEEEEEE...............EEE..E.. [ 68%]
> test/segyio_c.py EEEEEEEE....................... [ 84%]
> test/segyioenum.py . [ 85%]
> test/tools.py EEEEEE...........EEEEEEEEEE [100%]
>
> ==================================== ERRORS ====================================
> ___________________ ERROR at setup of test_put_text_sequence ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f8d2c20>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_writetrace_int16 ____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f8d2b00>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_write_iline_int16 ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196e60>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_utf8_filename_pypath __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f0abb50>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_header_dropped_writes _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f0abac0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_headers_line_offset __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f7d3e20>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_write_header ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197ac0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_write_binary ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f7d2830>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_write_header_update_atomic _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f7d3be0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_write_with_narrowing __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f7d3c70>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_write_with_array_likes _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197010>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_assign_all_traces ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f7d1b40>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_create_sgy _______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196950>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_ref_getitem ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196dd0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_ref_inplace_add_foreach ________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197910>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_ref_preserve_change_except_block ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f1970a0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_ref_post_loop_var ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197490>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_ref_sliced _______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196c20>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_ref_mixed_for_else ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196d40>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_ref_new_file ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f1977f0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_create_sgy_truncate __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197f40>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _______________ ERROR at setup of test_create_sgy_shorter_traces _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197130>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_create_from_naught[lsb] ________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197eb0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_create_from_naught[msb] ________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f1968c0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_from_naught_prestack[lsb] ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196a70>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_from_naught_prestack[msb] ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197520>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_unstructured_hasattrs[lsb] ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197e20>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_unstructured_hasattrs[msb] ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197d00>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________ ERROR at setup of test_create_from_naught_unstructured[lsb] __________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196f80>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________ ERROR at setup of test_create_from_naught_unstructured[msb] __________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197b50>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_create_write_lines ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197370>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_create_sgy_skip_lines _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f1975b0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_create_bad_specs ____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197760>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_depth_slice_writing __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197880>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________ ERROR at setup of test_no_16bit_overflow_tracecount[little] __________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f196830>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_no_16bit_overflow_tracecount[big] ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197250>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_missing_format_ibmfloat_fallback ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f197400>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_write_text_header_mmap _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f7d1ab0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_write_text_header ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3400>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________ ERROR at setup of test_read_and_write_binary_header ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b0700>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_read_and_write_binary_header_mmap ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b2cb0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ____________ ERROR at setup of test_read_and_write_traceheader_mmap ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b2f80>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_read_and_write_traceheader _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b39a0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _______________ ERROR at setup of test_read_and_write_trace_mmap _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b2b90>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_read_and_write_trace __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b17e0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_dt_fallback ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b04c0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ____________________ ERROR at setup of test_dt_no_fallback _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3ac0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_resample_none _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b2e60>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_resample_all ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3d90>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_resample_rate _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3eb0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ____________________ ERROR at setup of test_resample_delay _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b11b0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of testfrom_array_2D[createfrom2d] _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b1120>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of testfrom_array_2D[createfromany] ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b0af0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array3D[createfrom3d] _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b0790>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array3D[createfromany] ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3c70>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array4D[createfrom4d] _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3be0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array4D[createfromany] ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b3130>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfrom2d] ______
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b1c60>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfrom3d] ______
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b1240>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfrom4d] ______
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b2200>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfromany] _____
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7eff2f4b1870>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7eff2f884940>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> =============================== warnings summary ===============================
> .pybuild/cpython3_3.10_segyio/build/test/segy.py::test_traceaccess_from_array
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build/test/segy.py:953: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
> Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
> a = np.arange(10, dtype=np.int)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> ERROR test/segy.py::test_put_text_sequence - OSError: The temporary directory...
> ERROR test/segy.py::test_writetrace_int16 - OSError: The temporary directory ...
> ERROR test/segy.py::test_write_iline_int16 - OSError: The temporary directory...
> ERROR test/segy.py::test_utf8_filename_pypath - OSError: The temporary direct...
> ERROR test/segy.py::test_header_dropped_writes - OSError: The temporary direc...
> ERROR test/segy.py::test_headers_line_offset - OSError: The temporary directo...
> ERROR test/segy.py::test_write_header - OSError: The temporary directory /tmp...
> ERROR test/segy.py::test_write_binary - OSError: The temporary directory /tmp...
> ERROR test/segy.py::test_write_header_update_atomic - OSError: The temporary ...
> ERROR test/segy.py::test_write_with_narrowing - OSError: The temporary direct...
> ERROR test/segy.py::test_write_with_array_likes - OSError: The temporary dire...
> ERROR test/segy.py::test_assign_all_traces - OSError: The temporary directory...
> ERROR test/segy.py::test_create_sgy - OSError: The temporary directory /tmp/p...
> ERROR test/segy.py::test_ref_getitem - OSError: The temporary directory /tmp/...
> ERROR test/segy.py::test_ref_inplace_add_foreach - OSError: The temporary dir...
> ERROR test/segy.py::test_ref_preserve_change_except_block - OSError: The temp...
> ERROR test/segy.py::test_ref_post_loop_var - OSError: The temporary directory...
> ERROR test/segy.py::test_ref_sliced - OSError: The temporary directory /tmp/p...
> ERROR test/segy.py::test_ref_mixed_for_else - OSError: The temporary director...
> ERROR test/segy.py::test_ref_new_file - OSError: The temporary directory /tmp...
> ERROR test/segy.py::test_create_sgy_truncate - OSError: The temporary directo...
> ERROR test/segy.py::test_create_sgy_shorter_traces - OSError: The temporary d...
> ERROR test/segy.py::test_create_from_naught[lsb] - OSError: The temporary dir...
> ERROR test/segy.py::test_create_from_naught[msb] - OSError: The temporary dir...
> ERROR test/segy.py::test_create_from_naught_prestack[lsb] - OSError: The temp...
> ERROR test/segy.py::test_create_from_naught_prestack[msb] - OSError: The temp...
> ERROR test/segy.py::test_create_unstructured_hasattrs[lsb] - OSError: The tem...
> ERROR test/segy.py::test_create_unstructured_hasattrs[msb] - OSError: The tem...
> ERROR test/segy.py::test_create_from_naught_unstructured[lsb] - OSError: The ...
> ERROR test/segy.py::test_create_from_naught_unstructured[msb] - OSError: The ...
> ERROR test/segy.py::test_create_write_lines - OSError: The temporary director...
> ERROR test/segy.py::test_create_sgy_skip_lines - OSError: The temporary direc...
> ERROR test/segy.py::test_create_bad_specs - OSError: The temporary directory ...
> ERROR test/segy.py::test_depth_slice_writing - OSError: The temporary directo...
> ERROR test/segy.py::test_no_16bit_overflow_tracecount[little] - OSError: The ...
> ERROR test/segy.py::test_no_16bit_overflow_tracecount[big] - OSError: The tem...
> ERROR test/segy.py::test_missing_format_ibmfloat_fallback - OSError: The temp...
> ERROR test/segyio_c.py::test_write_text_header_mmap - OSError: The temporary ...
> ERROR test/segyio_c.py::test_write_text_header - OSError: The temporary direc...
> ERROR test/segyio_c.py::test_read_and_write_binary_header - OSError: The temp...
> ERROR test/segyio_c.py::test_read_and_write_binary_header_mmap - OSError: The...
> ERROR test/segyio_c.py::test_read_and_write_traceheader_mmap - OSError: The t...
> ERROR test/segyio_c.py::test_read_and_write_traceheader - OSError: The tempor...
> ERROR test/segyio_c.py::test_read_and_write_trace_mmap - OSError: The tempora...
> ERROR test/segyio_c.py::test_read_and_write_trace - OSError: The temporary di...
> ERROR test/tools.py::test_dt_fallback - OSError: The temporary directory /tmp...
> ERROR test/tools.py::test_dt_no_fallback - OSError: The temporary directory /...
> ERROR test/tools.py::test_resample_none - OSError: The temporary directory /t...
> ERROR test/tools.py::test_resample_all - OSError: The temporary directory /tm...
> ERROR test/tools.py::test_resample_rate - OSError: The temporary directory /t...
> ERROR test/tools.py::test_resample_delay - OSError: The temporary directory /...
> ERROR test/tools.py::testfrom_array_2D[createfrom2d] - OSError: The temporary...
> ERROR test/tools.py::testfrom_array_2D[createfromany] - OSError: The temporar...
> ERROR test/tools.py::test_from_array3D[createfrom3d] - OSError: The temporary...
> ERROR test/tools.py::test_from_array3D[createfromany] - OSError: The temporar...
> ERROR test/tools.py::test_from_array4D[createfrom4d] - OSError: The temporary...
> ERROR test/tools.py::test_from_array4D[createfromany] - OSError: The temporar...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfrom2d] - OSEr...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfrom3d] - OSEr...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfrom4d] - OSEr...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfromany] - OSE...
> ================== 124 passed, 1 warning, 61 errors in 9.08s ===================
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_segyio/build; python3.10 -m pytest -o python_files=test/*
> I: pybuild pybuild:286: cp -r /<<PKGBUILDDIR>>/python/test /<<PKGBUILDDIR>>/test-data /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build
> I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build; python3.9 -m pytest -o python_files=test/*
> ============================= test session starts ==============================
> platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 185 items
>
> test/segy.py EEEE...................................EE.................. [ 31%]
> ..........EEE......EEE.EEEEEEEEEEEEEEEEEEEEE...............EEE..E.. [ 68%]
> test/segyio_c.py EEEEEEEE....................... [ 84%]
> test/segyioenum.py . [ 85%]
> test/tools.py EEEEEE...........EEEEEEEEEE [100%]
>
> ==================================== ERRORS ====================================
> ___________________ ERROR at setup of test_put_text_sequence ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f42a015fb80>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_writetrace_int16 ____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f42a01bfd30>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_write_iline_int16 ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f5c74c0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_utf8_filename_pypath __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff52af0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_header_dropped_writes _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429fb33af0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_headers_line_offset __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff529d0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_write_header ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f749ee0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_write_binary ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff52a60>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_write_header_update_atomic _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff99670>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_write_with_narrowing __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429fefcaf0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_write_with_array_likes _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff99940>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_assign_all_traces ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff99820>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_create_sgy _______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791280>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_ref_getitem ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429ff998b0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_ref_inplace_add_foreach ________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791c10>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_ref_preserve_change_except_block ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791ca0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_ref_post_loop_var ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791d30>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_ref_sliced _______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791a60>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_ref_mixed_for_else ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f7919d0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_ref_new_file ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f7918b0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_create_sgy_truncate __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791940>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _______________ ERROR at setup of test_create_sgy_shorter_traces _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791700>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_create_from_naught[lsb] ________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791670>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_create_from_naught[msb] ________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791790>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_from_naught_prestack[lsb] ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f7914c0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_from_naught_prestack[msb] ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791e50>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_unstructured_hasattrs[lsb] ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791310>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_create_unstructured_hasattrs[msb] ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f7915e0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________ ERROR at setup of test_create_from_naught_unstructured[lsb] __________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791550>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________ ERROR at setup of test_create_from_naught_unstructured[msb] __________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791f70>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_create_write_lines ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791af0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_create_sgy_skip_lines _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791160>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_create_bad_specs ____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791dc0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> __________________ ERROR at setup of test_depth_slice_writing __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f7911f0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________ ERROR at setup of test_no_16bit_overflow_tracecount[little] __________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9820>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_no_16bit_overflow_tracecount[big] ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf99d0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_missing_format_ibmfloat_fallback ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9700>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ________________ ERROR at setup of test_write_text_header_mmap _________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f749e50>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________________ ERROR at setup of test_write_text_header ___________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791ee0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________ ERROR at setup of test_read_and_write_binary_header ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f7913a0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ___________ ERROR at setup of test_read_and_write_binary_header_mmap ___________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791b80>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ____________ ERROR at setup of test_read_and_write_traceheader_mmap ____________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9dc0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_read_and_write_traceheader _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9e50>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _______________ ERROR at setup of test_read_and_write_trace_mmap _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9af0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _________________ ERROR at setup of test_read_and_write_trace __________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9b80>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________________ ERROR at setup of test_dt_fallback ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429f791430>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ____________________ ERROR at setup of test_dt_no_fallback _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9670>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_resample_none _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9d30>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_resample_all ______________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9940>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____________________ ERROR at setup of test_resample_rate _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9a60>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ____________________ ERROR at setup of test_resample_delay _____________________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9280>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of testfrom_array_2D[createfrom2d] _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf9ca0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of testfrom_array_2D[createfromany] ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf93a0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array3D[createfrom3d] _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429df9b040>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array3D[createfromany] ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf91f0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array4D[createfrom4d] _______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429faf98b0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> ______________ ERROR at setup of test_from_array4D[createfromany] ______________
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429df9b430>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfrom2d] ______
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429df9bf70>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfrom3d] ______
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429df9b0d0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfrom4d] ______
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429df9b9d0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> _____ ERROR at setup of test_create_from_array_invalid_args[createfromany] _____
>
> cls = <class '_pytest.runner.CallInfo'>
> func = <function call_runtest_hook.<locals>.<lambda> at 0x7f429df9b3a0>
> when = 'setup'
> reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
>
> @classmethod
> def from_call(
> cls,
> func: "Callable[[], TResult]",
> when: "Literal['collect', 'setup', 'call', 'teardown']",
> reraise: Optional[
> Union[Type[BaseException], Tuple[Type[BaseException], ...]]
> ] = None,
> ) -> "CallInfo[TResult]":
> excinfo = None
> start = timing.time()
> precise_start = timing.perf_counter()
> try:
> > result: Optional[TResult] = func()
>
> /usr/lib/python3/dist-packages/_pytest/runner.py:311:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/_pytest/runner.py:255: in <lambda>
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/runner.py:150: in pytest_runtest_setup
> item.session._setupstate.prepare(item)
> /usr/lib/python3/dist-packages/_pytest/runner.py:452: in prepare
> raise e
> /usr/lib/python3/dist-packages/_pytest/runner.py:449: in prepare
> col.setup()
> /usr/lib/python3/dist-packages/_pytest/python.py:1647: in setup
> self._request._fillfixtures()
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:568: in _fillfixtures
> item.funcargs[argname] = self.getfixturevalue(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:581: in getfixturevalue
> fixturedef = self._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1048: in execute
> fixturedef = request._get_active_fixturedef(argname)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:601: in _get_active_fixturedef
> self._compute_fixture_value(fixturedef)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:687: in _compute_fixture_value
> fixturedef.execute(request=subrequest)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1072: in execute
> result = hook.pytest_fixture_setup(fixturedef=self, request=request)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
> return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
> return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:1126: in pytest_fixture_setup
> result = call_fixture_func(fixturefunc, request, kwargs)
> /usr/lib/python3/dist-packages/_pytest/fixtures.py:932: in call_fixture_func
> fixture_result = fixturefunc(**kwargs)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:254: in tmp_path
> return _mk_tmp(request, tmp_path_factory)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:219: in _mk_tmp
> return factory.mktemp(name, numbered=True)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:91: in mktemp
> basename = self._ensure_relative_to_basetemp(basename)
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:72: in _ensure_relative_to_basetemp
> if (self.getbasetemp() / basename).resolve().parent != self.getbasetemp():
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f42a01dcdf0>, _basetemp=None)
>
> def getbasetemp(self) -> Path:
> """Return the base temporary directory, creating it if needed."""
> if self._basetemp is not None:
> return self._basetemp
>
> if self._given_basetemp is not None:
> basetemp = self._given_basetemp
> if basetemp.exists():
> rm_rf(basetemp)
> basetemp.mkdir(mode=0o700)
> basetemp = basetemp.resolve()
> else:
> from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
> temproot = Path(from_env or tempfile.gettempdir()).resolve()
> user = get_user() or "unknown"
> # use a sub-directory in the temproot to speed-up
> # make_numbered_dir() call
> rootdir = temproot.joinpath(f"pytest-of-{user}")
> rootdir.mkdir(mode=0o700, exist_ok=True)
> # Because we use exist_ok=True with a predictable name, make sure
> # we are the owners, to prevent any funny business (on unix, where
> # temproot is usually shared).
> # Also, to keep things private, fixup any world-readable temp
> # rootdir's permissions. Historically 0o755 was used, so we can't
> # just error out on this, at least for a while.
> if sys.platform != "win32":
> uid = os.getuid()
> rootdir_stat = rootdir.stat()
> # getuid shouldn't fail, but cpython defines such a case.
> # Let's hope for the best.
> if uid != -1:
> if rootdir_stat.st_uid != uid:
> > raise OSError(
> f"The temporary directory {rootdir} is not owned by the current user. "
> "Fix this and try again."
> )
> E OSError: The temporary directory /tmp/pytest-of-user42 is not owned by the current user. Fix this and try again.
>
> /usr/lib/python3/dist-packages/_pytest/tmpdir.py:132: OSError
> =============================== warnings summary ===============================
> .pybuild/cpython3_3.9_segyio/build/test/segy.py::test_traceaccess_from_array
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build/test/segy.py:953: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
> Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
> a = np.arange(10, dtype=np.int)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> ERROR test/segy.py::test_put_text_sequence - OSError: The temporary directory...
> ERROR test/segy.py::test_writetrace_int16 - OSError: The temporary directory ...
> ERROR test/segy.py::test_write_iline_int16 - OSError: The temporary directory...
> ERROR test/segy.py::test_utf8_filename_pypath - OSError: The temporary direct...
> ERROR test/segy.py::test_header_dropped_writes - OSError: The temporary direc...
> ERROR test/segy.py::test_headers_line_offset - OSError: The temporary directo...
> ERROR test/segy.py::test_write_header - OSError: The temporary directory /tmp...
> ERROR test/segy.py::test_write_binary - OSError: The temporary directory /tmp...
> ERROR test/segy.py::test_write_header_update_atomic - OSError: The temporary ...
> ERROR test/segy.py::test_write_with_narrowing - OSError: The temporary direct...
> ERROR test/segy.py::test_write_with_array_likes - OSError: The temporary dire...
> ERROR test/segy.py::test_assign_all_traces - OSError: The temporary directory...
> ERROR test/segy.py::test_create_sgy - OSError: The temporary directory /tmp/p...
> ERROR test/segy.py::test_ref_getitem - OSError: The temporary directory /tmp/...
> ERROR test/segy.py::test_ref_inplace_add_foreach - OSError: The temporary dir...
> ERROR test/segy.py::test_ref_preserve_change_except_block - OSError: The temp...
> ERROR test/segy.py::test_ref_post_loop_var - OSError: The temporary directory...
> ERROR test/segy.py::test_ref_sliced - OSError: The temporary directory /tmp/p...
> ERROR test/segy.py::test_ref_mixed_for_else - OSError: The temporary director...
> ERROR test/segy.py::test_ref_new_file - OSError: The temporary directory /tmp...
> ERROR test/segy.py::test_create_sgy_truncate - OSError: The temporary directo...
> ERROR test/segy.py::test_create_sgy_shorter_traces - OSError: The temporary d...
> ERROR test/segy.py::test_create_from_naught[lsb] - OSError: The temporary dir...
> ERROR test/segy.py::test_create_from_naught[msb] - OSError: The temporary dir...
> ERROR test/segy.py::test_create_from_naught_prestack[lsb] - OSError: The temp...
> ERROR test/segy.py::test_create_from_naught_prestack[msb] - OSError: The temp...
> ERROR test/segy.py::test_create_unstructured_hasattrs[lsb] - OSError: The tem...
> ERROR test/segy.py::test_create_unstructured_hasattrs[msb] - OSError: The tem...
> ERROR test/segy.py::test_create_from_naught_unstructured[lsb] - OSError: The ...
> ERROR test/segy.py::test_create_from_naught_unstructured[msb] - OSError: The ...
> ERROR test/segy.py::test_create_write_lines - OSError: The temporary director...
> ERROR test/segy.py::test_create_sgy_skip_lines - OSError: The temporary direc...
> ERROR test/segy.py::test_create_bad_specs - OSError: The temporary directory ...
> ERROR test/segy.py::test_depth_slice_writing - OSError: The temporary directo...
> ERROR test/segy.py::test_no_16bit_overflow_tracecount[little] - OSError: The ...
> ERROR test/segy.py::test_no_16bit_overflow_tracecount[big] - OSError: The tem...
> ERROR test/segy.py::test_missing_format_ibmfloat_fallback - OSError: The temp...
> ERROR test/segyio_c.py::test_write_text_header_mmap - OSError: The temporary ...
> ERROR test/segyio_c.py::test_write_text_header - OSError: The temporary direc...
> ERROR test/segyio_c.py::test_read_and_write_binary_header - OSError: The temp...
> ERROR test/segyio_c.py::test_read_and_write_binary_header_mmap - OSError: The...
> ERROR test/segyio_c.py::test_read_and_write_traceheader_mmap - OSError: The t...
> ERROR test/segyio_c.py::test_read_and_write_traceheader - OSError: The tempor...
> ERROR test/segyio_c.py::test_read_and_write_trace_mmap - OSError: The tempora...
> ERROR test/segyio_c.py::test_read_and_write_trace - OSError: The temporary di...
> ERROR test/tools.py::test_dt_fallback - OSError: The temporary directory /tmp...
> ERROR test/tools.py::test_dt_no_fallback - OSError: The temporary directory /...
> ERROR test/tools.py::test_resample_none - OSError: The temporary directory /t...
> ERROR test/tools.py::test_resample_all - OSError: The temporary directory /tm...
> ERROR test/tools.py::test_resample_rate - OSError: The temporary directory /t...
> ERROR test/tools.py::test_resample_delay - OSError: The temporary directory /...
> ERROR test/tools.py::testfrom_array_2D[createfrom2d] - OSError: The temporary...
> ERROR test/tools.py::testfrom_array_2D[createfromany] - OSError: The temporar...
> ERROR test/tools.py::test_from_array3D[createfrom3d] - OSError: The temporary...
> ERROR test/tools.py::test_from_array3D[createfromany] - OSError: The temporar...
> ERROR test/tools.py::test_from_array4D[createfrom4d] - OSError: The temporary...
> ERROR test/tools.py::test_from_array4D[createfromany] - OSError: The temporar...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfrom2d] - OSEr...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfrom3d] - OSEr...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfrom4d] - OSEr...
> ERROR test/tools.py::test_create_from_array_invalid_args[createfromany] - OSE...
> ================== 124 passed, 1 warning, 61 errors in 9.07s ===================
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_segyio/build; python3.9 -m pytest -o python_files=test/*
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.9" "--test-args=-o python_files=test/*" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2021/12/20/segyio_1.8.3-1.1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the debian-science-maintainers
mailing list