• Kirill Smelkov's avatar
    py.bench: Don't forget to clear config's inicache after tweaking config.inicfg · 5a1ed45a
    Kirill Smelkov authored
    If py.test machinery access any of the keys we change before we tweak
    them - their values will be put to config._inicache and our tweaking
    won't essentially have the effect.
    
    It used to be working without explicit cache invalidation with older
    pytests, but as of e.g. py.test 3.2.1 it does not work without explicit
    cache clearing because e.g. 'python_files' is somehow accessed before
    and is set to std 'test_*.py' + friends in the cache and this way
    py.bench then does not collect benchmarks from bench_*.py files.
    
    Fix it by making sure inicache is invalidated after our inicfg tweak.
    5a1ed45a
Name
Last commit
Last update
3rdparty Loading commit data...
bigarray Loading commit data...
bigfile Loading commit data...
demo Loading commit data...
include/wendelin Loading commit data...
lib Loading commit data...
t Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
CHANGELOG.rst Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
wendelin.py Loading commit data...