3 new commits in pytest-cache:
https://bitbucket.org/hpk42/pytest-cache/changeset/c3794cc95172/ changeset: c3794cc95172 user: RonnyPfannschmidt date: 2012-07-10 09:48:46 summary: use set.discard for removing lastfailed set items affected #: 1 file diff -r bc61694438e9cdd3ce0296b8379f8f82b694aae5 -r c3794cc951724285664c7a5f315d9d133723de0d pytest_cache.py --- a/pytest_cache.py +++ b/pytest_cache.py @@ -133,10 +133,7 @@ call = report.when == "call" skipped_setup = report.when == 'setup' and report.skipped if call or skipped_setup: - try: - self.lastfailed.remove(report.nodeid) - except KeyError: - pass + self.lastfailed.discard(report.nodeid) def pytest_collection_modifyitems(self, session, config, items): if self.config.getvalue("lf") and self.lastfailed: https://bitbucket.org/hpk42/pytest-cache/changeset/bec5cc83091b/ changeset: bec5cc83091b user: RonnyPfannschmidt date: 2012-07-10 09:49:16 summary: use sort in cache show, so the output gets deterministic affected #: 1 file diff -r c3794cc951724285664c7a5f315d9d133723de0d -r bec5cc83091bc5fb32df87f82873ba36c1aecbc2 pytest_cache.py --- a/pytest_cache.py +++ b/pytest_cache.py @@ -165,7 +165,7 @@ basedir = config.cache._cachedir vdir = basedir.join("v") tw.sep("-", "cache values") - for valpath in vdir.visit(lambda x: x.check(file=1)): + for valpath in vdir.visit(lambda x: x.check(file=1), sort=True): key = valpath.relto(vdir) val = config.cache.get(key, dummy) if val is dummy: @@ -179,9 +179,9 @@ tw.line(" " + line) ddir = basedir.join("d") - if ddir.check(dir=1) and ddir.listdir(): + if ddir.check(dir=1) and ddir.listdir(sort=True): tw.sep("-", "cache directories") - for p in basedir.join("d").visit(): + for p in basedir.join("d").visit(sort=True): #if p.check(dir=1): # print("%s/" % p.relto(basedir)) if p.check(file=1): https://bitbucket.org/hpk42/pytest-cache/changeset/470d240e9674/ changeset: 470d240e9674 user: RonnyPfannschmidt date: 2012-07-10 09:51:01 summary: pep8 fix affected #: 1 file diff -r bec5cc83091bc5fb32df87f82873ba36c1aecbc2 -r 470d240e9674529a38718110fbd25d5511809892 test_cache.py --- a/test_cache.py +++ b/test_cache.py @@ -201,14 +201,14 @@ ]) monkeypatch.delenv('SKIPAT') - + result = testdir.runpytest() result.stdout.fnmatch_lines([ "*2 failed*", ]) - + monkeypatch.setenv("SKIPAT", 'setup') - + result = testdir.runpytest("--lf") result.stdout.fnmatch_lines([ "*1 skipped*", @@ -220,7 +220,7 @@ ]) monkeypatch.delenv('SKIPAT') - + result = testdir.runpytest("--lf") result.stdout.fnmatch_lines([ "*1 failed*", Repository URL: https://bitbucket.org/hpk42/pytest-cache/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn