~ubuntu-branches/ubuntu/quantal/pylint/quantal

« back to all changes in this revision

Viewing changes to test/smoketest.py

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2011-08-02 20:05:50 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110802200550-5efk0cfszfzjpjdn
Tags: 0.24.0-1
* New upstream release
* debian/copyright
  - bump upstream and packaging copyright years
* debian/rules
  - add build-arch build-indep targets, as suggested by lintian
* debian/control
  - bump Standards-Version to 3.9.2 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    def _runtest(self, args, reporter=None, out=None, code=28):
30
30
        if out is None:
31
31
            out = StringIO()
 
32
        if args and args[-1].startswith('pylint.lint'):
 
33
            try:
 
34
                import cProfile, pstats
 
35
            except ImportError:
 
36
                code += 1
32
37
        try:
33
38
            sys.stderr = sys.stdout = out
34
39
            try: