~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to tests/test_pep8.py

  • Committer: Julian Andres Klode
  • Date: 2020-01-28 09:54:52 UTC
  • Revision ID: juliank@ubuntu.com-20200128095452-g0q3a1xg75a7k56j
Replace pep8 with pycodestyle

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                py_file = os.path.join(dirpath, f)
26
26
                if f == 'test_motd.py':
27
27
                    ret_code = subprocess.call(
28
 
                        ["pep8", "--ignore={0}".format(IGNORE_PEP8 + ", E501"),
 
28
                        ["pycodestyle",
 
29
                         "--ignore={0}".format(IGNORE_PEP8 + ", E501"),
29
30
                         py_file])
30
31
                else:
31
32
                    ret_code = subprocess.call(
32
 
                        ["pep8", "--ignore={0}".format(IGNORE_PEP8), py_file])
 
33
                        ["pycodestyle",
 
34
                         "--ignore={0}".format(IGNORE_PEP8),
 
35
                         py_file])
33
36
                self.assertEqual(0, ret_code)
34
37
 
35
38