21 Commits

Author SHA1 Message Date
Stefano Rivera
301569e809 Pull out Python 2 support hacks 2019-09-04 19:24:44 -03:00
Stefano Rivera
2d3765522e Use the Popen() encoding flag to decode to unicode
This should make behavior identical on Python 2 & 3.
2019-09-04 19:24:44 -03:00
Stefano Rivera
e163ee0158 Test with the pylint command, we don't have py2+3 versions any more 2019-09-03 21:10:38 -03:00
Benjamin Drung
74df5b3869 Update pylint and flake8 unittests
Import improvements from https://github.com/bdrung/snippets
2018-10-06 17:42:59 +02:00
Benjamin Drung
468dbc7746 ubuntutools/test: Introduce get_source_files function
The flake8 and pylint unittest use the same logic to determine the source
files. Therefore put this logic in one function.
2018-10-06 17:16:12 +02:00
Mattia Rizzolo
edb49c652c
Fix test failures with newer flake8 and pylint.
Closes: #891721
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2018-03-08 12:56:36 +01:00
Iain Lane
0a3738cfbc Fix some 2/3 differences and run pylint with confidence=HIGH
Too many false positives otherwise.
2017-05-30 11:22:49 +01:00
Benjamin Drung
cc7170eccb Fix all flake8 issues 2017-05-01 00:20:03 +02:00
Benjamin Drung
ba16daf56f Repair pylint test case
The --include-ids parameter was dropped from pylint and thus the command
failed as was skipped. Repair the pylint check and add support for
Python 3.
2017-04-30 22:29:41 +02:00
Dimitri John Ledkov
d4f6ef320e remains of mox 2014-12-16 01:44:13 +00:00
Evan Broder
19c33e5e32 * ubuntutools.subprocess:
- New drop-in replacement wrapper module around subprocess that
    backports the restore_signals kwarg and defaults close_fds=True
  - Switch everything previously using subprocess to use
    ubuntutools.subprocess instead (LP: #785854)
2011-06-24 16:32:07 +02:00
Evan Broder
5c96b78d72 Reimplement ubuntutools.subprocess.Popen as a class instead of a factory function. 2011-06-19 14:20:47 -07:00
Stefano Rivera
6aee8410eb Work around pylint bug: http://www.logilab.org/ticket/46273 2011-05-30 15:55:15 +02:00
Evan Broder
d82e65e0e2 * ubuntutools.subprocess:
- New drop-in replacement wrapper module around subprocess that
    backports the restore_signals kwarg and defaults close_fds=True
  - Switch everything previously using subprocess to use
    ubuntutools.subprocess instead (LP: #785854)
2011-05-24 20:22:37 +02:00
Stefano Rivera
35d3c4aee4 Skip pylint test if it crashes. 2011-03-01 00:51:25 +02:00
Stefano Rivera
7f311a2852 ubuntutools/archive.py: Rewrite launchpadlib redirects to https when
fetching dscs.
2011-02-13 14:40:14 +02:00
Stefano Rivera
d9a9b4cab4 Complete test suite for ubuntutools.archive 2010-12-31 21:08:16 +02:00
Benjamin Drung
fd667bdd5f Fix invalid name pylint report. 2010-12-27 22:46:16 +01:00
Benjamin Drung
2ba510bb89 Fix invalid name pylint report. 2010-12-27 22:33:01 +01:00
Stefano Rivera
76ba39d60b Add regex whitelist to pylint 2010-12-27 13:39:43 +02:00
Stefano Rivera
0fa022c367 Run pylint on Python source code. 2010-12-26 21:57:44 +02:00