On 31 juillet 14:51, Duncan Findlay wrote: > I just downloaded pylint 0.18.0, and before I start playing with it, > I wanted to validate my environment by running the unit tests. > Everything worked fine on Python 2.5 and 2.6, but I had a few > failures with Python 2.4 in smoketest.py > > ====================================================================== > FAIL: make pylint checking itself > ---------------------------------------------------------------------- > Traceback (most recent call last) > File "/home/duncan/downloads/pylint-0.18.0/test/smoketest.py", > line 48, in test1 > self._runtest(['--include-ids=y', 'pylint.lint'], > reporter=TextReporter(StringIO())) > File "/home/duncan/downloads/pylint-0.18.0/test/smoketest.py", > line 34, in _runtest > self.assertEquals(ex.code, code) > AssertionError: 30 != 28 > > no stdout > no stderr > > (Similarly all the other pylint testing itself checks failed.) > > Running pylint on itself with python2.4, I see (among other errors): > > E1103:499:PyLinter.check: Instance of 'str' has no 'file' member > (but some types could not be inferred) > > Am I missing something, or is this a bug (in the tests, astng or > otherwise).
no worry. If you look at hg history for smoketest, you'll see a bit after 0.18 release: + if sys.version_info < (2, 5) and 'pylint.lint' in args: + code = 30 so everything is fine. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects