1 new commit in pytest-pep8:

https://bitbucket.org/hpk42/pytest-pep8/changeset/93ebd08f41f9/
changeset:   93ebd08f41f9
user:        hpk42
date:        2012-11-29 21:22:21
summary:     fix issue2:  make pep8 interoperate with --strict runs
affected #:  4 files

diff -r e7c446c820180183af8c9f5ecc54f4ee79e9a8a6 -r 
93ebd08f41f93143242b7088a93673e751234a11 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,8 @@
+1.0.4
+---------------------------------
+
+- fix issue2:  make pep8 interoperate with --strict runs
+
 1.0.3
 ----------------------------------------------
 


diff -r e7c446c820180183af8c9f5ecc54f4ee79e9a8a6 -r 
93ebd08f41f93143242b7088a93673e751234a11 pytest_pep8.py
--- a/pytest_pep8.py
+++ b/pytest_pep8.py
@@ -3,7 +3,7 @@
 import pytest
 import pep8
 
-__version__ = '1.0.3'
+__version__ = '1.0.4'
 
 HISTKEY = "pep8/mtimes"
 
@@ -51,7 +51,7 @@
 
     def __init__(self, path, parent, pep8ignore, max_line_length):
         super(Pep8Item, self).__init__(path, parent)
-        self.keywords["pep8"] = pytest.mark.pep8
+        self.keywords["pep8"] = True
         self.pep8ignore = pep8ignore
         self.max_line_length = max_line_length
 


diff -r e7c446c820180183af8c9f5ecc54f4ee79e9a8a6 -r 
93ebd08f41f93143242b7088a93673e751234a11 setup.py
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@
         name='pytest-pep8',
         description='pytest plugin to check PEP8 requirements',
         long_description=open("README.txt").read(),
-        version='1.0.3',
+        version='1.0.4',
         author='Holger Krekel and Ronny Pfannschmidt',
         author_email='holger.kre...@gmail.com',
         url='http://bitbucket.org/hpk42/pytest-pep8/',


diff -r e7c446c820180183af8c9f5ecc54f4ee79e9a8a6 -r 
93ebd08f41f93143242b7088a93673e751234a11 test_pep8.py
--- a/test_pep8.py
+++ b/test_pep8.py
@@ -134,3 +134,9 @@
     f.close()
     result = testdir.runpytest("--pep8", x, "-s")
     result.stdout.fnmatch_lines("*non-ascii comment*")
+
+
+def test_strict(testdir):
+    testdir.makepyfile("")
+    result = testdir.runpytest("--strict", "--pep8")
+    assert result.ret == 0

Repository URL: https://bitbucket.org/hpk42/pytest-pep8/

--

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

Reply via email to