~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

Merge with walkdirs

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]