~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_export.py

  • Committer: Vincent Ladeuil
  • Date: 2009-04-06 14:01:16 UTC
  • mto: (4241.10.1 bzr.1.14)
  • mto: This revision was merged to the branch mainline in revision 4267.
  • Revision ID: v.ladeuil+lp@free.fr-20090406140116-zkbvjtaxfhbql4l4
Fix unicode related OSX failures.

* bzrlib/tests/test_export.py: 
Fix imports.

* bzrlib/tests/blackbox/test_export.py:
(TestExport.test_tar_export_unicode,
TestExport.test_zip_export_unicode): Use a less problematic
unicode char for OSX.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from bzrlib.export import export
20
 
from bzrlib.tests import TestCaseWithTransport
21
 
 
22
 
 
23
 
class TestExport(TestCaseWithTransport):
 
19
 
 
20
from bzrlib import (
 
21
    export,
 
22
    tests,
 
23
    )
 
24
 
 
25
 
 
26
class TestExport(tests.TestCaseWithTransport):
24
27
 
25
28
    def test_dir_export_missing_file(self):
26
29
        self.build_tree(['a/', 'a/b', 'a/c'])
27
30
        wt = self.make_branch_and_tree('.')
28
31
        wt.add(['a', 'a/b', 'a/c'])
29
32
        os.unlink('a/c')
30
 
        export(wt, 'target', format="dir")
 
33
        export.export(wt, 'target', format="dir")
31
34
        self.failUnlessExists('target/a/b')
32
35
        self.failIfExists('target/a/c')
 
36