~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-18 15:28:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6386.
  • Revision ID: jelmer@samba.org-20111218152838-5wxpfnugk2jd625k
UseĀ absolute_import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
        missing_absolute_import = []
427
427
        for fname, text in self.get_source_file_contents(
428
428
                extensions=('.py', )):
429
 
            if "/tests/" in fname:
 
429
            if "/tests/" in fname or "test_" in fname:
430
430
                # We don't really care about tests
431
431
                continue
432
 
            if not "from __future__ import absolute_import\n" in text:
 
432
            if not "from __future__ import absolute_import" in text:
433
433
                missing_absolute_import.append(fname)
434
434
 
435
435
        if missing_absolute_import: