From 8e88261c150813eaf5edfdfb5aeea814843c7e47 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 7 Oct 2013 10:20:24 +0200 Subject: [PATCH] ignore dot files for file changes (editors write tmp/swap files etc.) --- CHANGELOG | 5 +++++ setup.py | 2 +- testing/test_looponfail.py | 4 ++++ xdist/__init__.py | 2 +- xdist/looponfail.py | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 514f1b3..6d5e4a5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +1.10 +------------------------- + +- ignore dot files for file changes (editors write tmp/swap files etc.) + 1.9 ------------------------- diff --git a/setup.py b/setup.py index 42ca34d..bfc3e7f 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/testing/test_looponfail.py b/testing/test_looponfail.py index fe5f9fd..38f4963 100644 --- a/testing/test_looponfail.py +++ b/testing/test_looponfail.py @@ -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 diff --git a/xdist/__init__.py b/xdist/__init__.py index 4f3014a..d0a4df4 100644 --- a/xdist/__init__.py +++ b/xdist/__init__.py @@ -1,2 +1,2 @@ # -__version__ = '1.9' +__version__ = '1.10' diff --git a/xdist/looponfail.py b/xdist/looponfail.py index 1a8d9f2..d43954d 100644 --- a/xdist/looponfail.py +++ b/xdist/looponfail.py @@ -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)