ignore dot files for file changes (editors write tmp/swap files etc.)

This commit is contained in:
holger krekel
2013-10-07 10:20:24 +02:00
parent 6045195f16
commit 8e88261c15
5 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
1.10
-------------------------
- ignore dot files for file changes (editors write tmp/swap files etc.)
1.9
-------------------------

View File

@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="pytest-xdist",
version='1.9',
version='1.10',
description='py.test xdist plugin for distributed testing and loop-on-failing modes',
long_description=open('README.txt').read(),
license='MIT',

View File

@@ -14,6 +14,10 @@ class TestStatRecorder:
changed = sd.check()
assert changed
(hello + "c").write("hello")
changed = sd.check()
assert changed
p = tmp.ensure("new.py")
changed = sd.check()
assert changed

View File

@@ -1,2 +1,2 @@
#
__version__ = '1.9'
__version__ = '1.10'

View File

@@ -188,7 +188,7 @@ class StatRecorder:
self.check() # snapshot state
def fil(self, p):
return True # we are sensitive to all file changes since 1.9
return p.check(dotfile=0)
def rec(self, p):
return p.check(dotfile=0)