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)
def ec(filename, **args): path = os.path.join(dirname, "exitcode", filename) exitcode.exitcode(path, rename=False, **args)