I would like to ignore part of my test when running inside docker container (manylinux image). Everything work perfect when using --ignore flag until I extract common part to conftest.py. Then it shows that conftest.py content is executed even if whole directory is ignored.
In my case problem is connected with Qt. To use it I need to setup xvfb, which is not nice on centos6 system.
I think that conftest should not be executed if is inside ignored dir.
Package Version
----------------------------- --------------------------------
alabaster 0.7.12
appdirs 1.4.4
attrs 19.3.0
Babel 2.8.0
backcall 0.2.0
cachey 0.2.1
certifi 2020.6.20
chardet 3.0.4
coverage 5.1
Cython 0.29.20
czifile 2019.7.2
dask 2.20.0
dataclasses 0.7
decorator 4.4.2
defusedxml 0.6.0
docutils 0.16
et-xmlfile 1.0.1
freetype-py 2.1.0.post1
h5py 2.10.0
HeapDict 1.0.1
idna 2.10
imagecodecs 2020.5.30
imageio 2.8.0
imagesize 1.2.0
importlib-metadata 1.7.0
ipykernel 5.3.1
ipython 7.16.1
ipython-genutils 0.2.0
jdcal 1.4.1
jedi 0.17.1
Jinja2 2.11.2
jupyter-client 6.1.5
jupyter-core 4.6.3
MarkupSafe 1.1.1
more-itertools 8.4.0
mpmath 1.1.0
napari 0.3.5
napari-plugin-engine 0.1.6
napari-svg 0.1.3
numpy 1.19.0
numpydoc 1.1.0
oiffile 2020.1.18
openpyxl 3.0.4
packaging 20.4
pandas 1.0.5
parso 0.7.0
PartSeg 0.11.0b6.dev4+ga907ae4.d20200706
PartSegData 0.9.4
pexpect 4.8.0
pickleshare 0.7.5
Pillow 7.2.0
pip 20.1.1
pluggy 0.13.1
prompt-toolkit 3.0.5
psutil 5.7.0
ptyprocess 0.6.0
py 1.9.0
Pygments 2.6.1
PyOpenGL 3.1.5
PyOpenGL-accelerate 3.1.5
pyparsing 2.4.7
PyQt5 5.13.2
PyQt5-sip 12.8.0
pytest 5.4.3
pytest-cov 2.10.0
python-dateutil 2.8.1
pytz 2020.1
PyYAML 5.3.1
pyzmq 19.0.1
qtconsole 4.7.5
QtPy 1.9.0
requests 2.24.0
scipy 1.5.1
sentry-sdk 0.16.0
setuptools 46.4.0
SimpleITK 1.2.4
six 1.15.0
snowballstemmer 2.0.0
Sphinx 3.1.2
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 1.0.3
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.4
sympy 1.6.1
tifffile 2020.7.4
toolz 0.10.0
tornado 6.0.4
traitlets 4.3.3
urllib3 1.25.9
vispy 0.6.4
wcwidth 0.2.5
wheel 0.34.2
wrapt 1.12.1
xlrd 1.2.0
XlsxWriter 1.2.9
zipp 3.1.0
I would like to ignore part of my test when running inside docker container (manylinux image). Everything work perfect when using
--ignoreflag until I extract common part toconftest.py. Then it shows thatconftest.pycontent is executed even if whole directory is ignored.In my case problem is connected with Qt. To use it I need to setup xvfb, which is not nice on centos6 system.
I think that conftest should not be executed if is inside ignored dir.
pip listfrom the virtual environment you are using