~bdrung/apport/cleanup

« back to all changes in this revision

Viewing changes to test/test_apport_valgrind.py

  • Committer: Benjamin Drung
  • Date: 2020-08-20 16:18:28 UTC
  • Revision ID: bdrung@ubuntu.com-20200820161828-0buhuyin92f43pqa
Resolve pycodestyle issues

Import changes from apport 2.20.11-0ubuntu7 (from Brian Murray).

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
}'''
95
95
 
96
96
        with open('memleak.c', 'w') as fd:
97
 
                fd.write(code)
 
97
            fd.write(code)
98
98
        cmd = ['gcc', '-Wall', '-Werror', '-g', 'memleak.c', '-o', 'memleak']
99
99
        self.assertEqual(
100
100
            subprocess.call(cmd), 0, 'compiling memleak.c failed.')