~apport-hackers/apport/trunk

« back to all changes in this revision

Viewing changes to test/test_python_crashes.py

  • Committer: Martin Pitt
  • Date: 2012-04-11 16:09:08 UTC
  • Revision ID: martin.pitt@canonical.com-20120411160908-cypjfe8pkzqp5lbd
* Fix the whole code to be PEP-8 compatible, and enforce this in test/run by running the "pep8" tool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import apport.fileutils, problem_report
20
20
 
 
21
 
21
22
class T(unittest.TestCase):
22
23
    def tearDown(self):
23
24
        for f in apport.fileutils.get_all_reports():
30
31
        # hook
31
32
        if scriptname:
32
33
            script = scriptname
33
 
            fd = os.open(scriptname, os.O_CREAT|os.O_WRONLY)
 
34
            fd = os.open(scriptname, os.O_CREAT | os.O_WRONLY)
34
35
        else:
35
36
            (fd, script) = tempfile.mkstemp(dir='/var/tmp')
36
37
        try: