~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-12 20:18:55 UTC
  • mfrom: (3616.2.12 bzr.work.tests.blackbox)
  • Revision ID: pqm@pqm.ubuntu.com-20080812201855-9qxbdo0t2h9byzhj
(Mark Hammond) Win32 test fixes

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]