~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-14 17:08:56 UTC
  • mfrom: (3629 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3633.
  • Revision ID: john@arbash-meinel.com-20080814170856-p2ie5z7l6vowrftz
merge bzr.dev 3629, update NEWS entry to be in correct location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
    def source_file_name(self, package):
57
57
        """Return the path of the .py file for package."""
 
58
        if getattr(sys, "frozen", None) is not None:
 
59
            raise TestSkipped("can't test sources in frozen distributions.")
58
60
        path = package.__file__
59
61
        if path[-1] in 'co':
60
62
            return path[:-1]