summaryrefslogtreecommitdiff
path: root/testutils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-03-29 18:42:21 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-03-29 18:42:21 +0100
commitc20fb5205948021e71c770544af4fac940788013 (patch)
tree42dd86108261c723348ae365c665e51e4e28ff27 /testutils.py
parent1c19e05887bb6abb26dd54cffa8229226a4ca36c (diff)
downloadpylint-git-c20fb5205948021e71c770544af4fac940788013.tar.gz
a few pylint fixes and copyright cleanups
Diffstat (limited to 'testutils.py')
-rw-r--r--testutils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/testutils.py b/testutils.py
index bd9d4cb03..40ee11637 100644
--- a/testutils.py
+++ b/testutils.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE).
+# Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
@@ -92,10 +92,10 @@ class TestReporter(BaseReporter):
def add_message(self, msg_id, location, msg):
"""manage message of different type and in the context of path """
- fpath, module, object, line, _ = location
+ fpath, module, obj, line, _ = location
self.message_ids[msg_id] = 1
if object:
- object = ':%s' % object
+ object = ':%s' % obj
sigle = msg_id[0]
self.messages.append('%s:%3s%s: %s' % (sigle, line, object, msg))
@@ -127,7 +127,7 @@ else:
def ulines(string):
return string
-INFO_TEST_RGX = re.compile('^func_i\d\d\d\d$')
+INFO_TEST_RGX = re.compile(r'^func_i\d\d\d\d$')
def exception_str(self, ex):
"""function used to replace default __str__ method of exception instances"""