I've tried to make a patch but I don't get why all those branches are there. Why is screenshot_dir recreated in certain conditions?
[gw1] linux2 -- Python 2.7.12 /usr/bin/python2.7
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pytest_splinter/plugin.py", line 522, in _take_screenshot_on_failure
splinter_screenshot_getter_png=splinter_screenshot_getter_png,
File "/usr/local/lib/python2.7/dist-packages/pytest_splinter/plugin.py", line 376, in _take_screenshot
screenshot_dir = session_tmpdir.ensure('screenshots', dir=True).strpath
AttributeError: 'function' object has no attribute 'ensure'
I've tried to make a patch but I don't get why all those branches are there. Why is
screenshot_dirrecreated in certain conditions?