コード例 #1
0
ファイル: test_cwd.py プロジェクト: zhuyue1314/KomodoEdit
    def test_ProcessProxy_cwd_specified_withspaces(self):
        wd = "my tmp relative dir with spaces"
        testsupport.mkdir(wd)

        p = process.ProcessProxy(['printcwd'], cwd=wd)
        output = p.stdout.read()

        pattern = re.compile("CWD is '(.*?)'")
        match = pattern.search(output)
        self.failUnless(match, "Could not find '%s' in 'printcwd' output: "\
                               "output=%r" % (pattern.pattern, output))
        self.failUnless(match.group(1) == os.path.abspath(wd),
                        "%r != %r" % (match.group(1), os.path.abspath(wd)))
    
        testsupport.rmtree(wd)
コード例 #2
0
 def tearDown(self):
     testsupport.rmtree('tmp')
コード例 #3
0
 def tearDown(self):
     testsupport.rmtree(gTmpDir)
コード例 #4
0
ファイル: test_which.py プロジェクト: fsys/which
 def tearDown(self):
     testsupport.rmtree(self.tmpdir)
コード例 #5
0
 def tearDown(self):
     testsupport.rmtree(gTmpDir)
コード例 #6
0
 def tearDown(self):
     testsupport.rmtree('tmp')
コード例 #7
0
ファイル: test_which.py プロジェクト: sx5486510/rotor-browser
 def tearDown(self):
     testsupport.rmtree(self.tmpdir)