예제 #1
0
 def test_rename_noerrfile(self):
     inf = os.path.join(dirname, "exitcode", "ok.out")
     outf = os.path.join(dirname, "exitcode", "ok.out.000")
     exitcode.exitcode(inf, rename=True)
     exists = os.path.isfile(outf)
     self.assertTrue(exists)
     if exists:
         os.rename(outf, inf)
예제 #2
0
 def test_rename_noerrfile(self):
     inf = os.path.join(dirname, "exitcode", "ok.out")
     outf = os.path.join(dirname, "exitcode", "ok.out.000")
     exitcode.exitcode(inf, rename=True)
     exists = os.path.isfile(outf)
     self.assertTrue(exists)
     if exists:
         os.rename(outf, inf)
예제 #3
0
 def ec(filename, **args):
     path = os.path.join(dirname, "exitcode", filename)
     exitcode.exitcode(path, rename=False, **args)
예제 #4
0
 def ec(filename, **args):
     path = os.path.join(dirname, "exitcode", filename)
     exitcode.exitcode(path, rename=False, **args)