~launchpad-pqm/dulwich/devel

« back to all changes in this revision

Viewing changes to dulwich/tests/__init__.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-02-01 22:19:18 UTC
  • mfrom: (435.1.1 lp-pqm)
  • Revision ID: launchpad@pqm.canonical.com-20120201221918-xblpmurc4ad1jjkt
[rs=jelmer] Update to r1018.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        return subprocess.Popen(argv,
69
69
            stdout=subprocess.PIPE,
70
70
            stdin=subprocess.PIPE, stderr=subprocess.PIPE,
 
71
            universal_newlines=True,
71
72
            env=env)
72
73
 
73
74
 
75
76
    names = [
76
77
        'blackbox',
77
78
        'client',
 
79
        'config',
78
80
        'diff_tree',
79
81
        'fastexport',
80
82
        'file',
100
102
        'introduction',
101
103
        'repo',
102
104
        'object-store',
 
105
        'remote',
103
106
        'conclusion',
104
107
        ]
105
108
    tutorial_files = ["../../docs/tutorial/%s.txt" % name for name in tutorial]
108
111
        test.__dulwich_tempdir = tempfile.mkdtemp()
109
112
        os.chdir(test.__dulwich_tempdir)
110
113
    def teardown(test):
 
114
        os.chdir(test.__old_cwd)
111
115
        shutil.rmtree(test.__dulwich_tempdir)
112
 
        os.chdir(test.__old_cwd)
113
116
    return doctest.DocFileSuite(setUp=setup, tearDown=teardown,
114
117
        *tutorial_files)
115
118