~ubuntu-branches/ubuntu/precise/debtags/precise-proposed

« back to all changes in this revision

Viewing changes to test/test_pyflakes.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-02-13 10:33:06 UTC
  • Revision ID: package-import@ubuntu.com-20120213103306-71cdhoe5b0zb5r1k
Tags: 1.8.0+git20120213ubuntu1
* updated git snapshot:
  - include new debtags-hardware command
  - include support for postive/negative match generator

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
 
3
import os
3
4
import subprocess
4
5
import unittest
5
6
 
7
8
    """ ensure that the tree is pyflakes clean """
8
9
 
9
10
    def test_pyflakes_clean(self):
10
 
        self.assertEqual(subprocess.call(["pyflakes",".."]), 0)
11
 
 
 
11
        basedir = os.path.dirname(__file__)
 
12
        if not basedir:
 
13
            basedir=os.getcwd()
 
14
        basedir = os.path.abspath(os.path.join(basedir, ".."))
 
15
        self.assertEqual(subprocess.call(["pyflakes", basedir]), 0)
12
16
 
13
17
if __name__ == "__main__":
14
18
    import logging