[Pkg-debile-commits] [debile-slave] 71/100: fixing tests; lintian

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:53:11 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch master
in repository debile-slave.

commit 901bc5e9dfe88fd0f9d1c7d0fd9cc7b8be8eaa04
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Wed Jun 12 20:02:55 2013 -0400

    fixing tests; lintian
---
 ethel/wrappers/lintian.py       |    2 +-
 tests/wrappers/test_cppcheck.py |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ethel/wrappers/lintian.py b/ethel/wrappers/lintian.py
index d79be87..7a174ee 100644
--- a/ethel/wrappers/lintian.py
+++ b/ethel/wrappers/lintian.py
@@ -3,7 +3,7 @@ import re
 
 
 LINE_RE = re.compile(
-    r"(?P<severity>.*): (?P<package>.*): (?P<testid>[^\s]+)( (?P<message>.*))?"
+    r"(?P<severity>\w): (?P<package>.*): (?P<testid>[^\s]+)( (?P<message>.*))?"
 )
 
 def parse_lintian(lines, fpath):
diff --git a/tests/wrappers/test_cppcheck.py b/tests/wrappers/test_cppcheck.py
index c0d4778..ec61a8b 100644
--- a/tests/wrappers/test_cppcheck.py
+++ b/tests/wrappers/test_cppcheck.py
@@ -1,4 +1,4 @@
-from ethel.wrappers.cppcheck import parse_cppcheck_xml
+from ethel.wrappers.cppcheck import parse_cppcheck
 
 DATA = b"""<?xml version="1.0" encoding="UTF-8"?>
 <results>
@@ -28,5 +28,5 @@ DATA = b"""<?xml version="1.0" encoding="UTF-8"?>
 
 
 def test_xml_parse():
-    for issue in parse_cppcheck_xml(DATA):
+    for issue in parse_cppcheck(DATA):
         assert issue.testid == 'unusedFunction'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git



More information about the Pkg-debile-commits mailing list