Skip to content

Commit

Permalink
Stop --testmon-readonly from touching .testmondata (tarpas#122)
Browse files Browse the repository at this point in the history
* Stop --testmon-readonly from touching .testmondata

* Bump version
  • Loading branch information
boxed authored and Matlino committed Feb 7, 2019
1 parent 1f89271 commit dbbaf2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name='pytest-testmon',
description='take TDD to a new level with py.test and testmon',
long_description=''.join(open('README.rst').readlines()),
version='0.9.14',
version='0.9.15',
license='MIT',
platforms=['linux', 'osx', 'win32'],
packages=['testmon'],
Expand Down
2 changes: 1 addition & 1 deletion testmon/pytest_testmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,6 @@ def pytest_keyboard_interrupt(self, excinfo):
self.testmon_save = False

def pytest_sessionfinish(self, session):
if self.testmon_save and not self.config.getoption('collectonly'):
if self.testmon_save and not self.config.getoption('collectonly') and not self.config.getoption('testmon_readonly'):
self.testmon_data.write_data()
self.testmon.close()

0 comments on commit dbbaf2f

Please sign in to comment.