def cookTestPkg(self, num, logLevel=log.WARNING, macros={}, prep=False):
        stdout = os.dup(sys.stdout.fileno())
        stderr = os.dup(sys.stderr.fileno())
        null = os.open('/dev/null', os.O_WRONLY)
        os.dup2(null, sys.stdout.fileno())
        os.dup2(null, sys.stderr.fileno())
        try:
            return cook.cookItem(self.repos, self.cfg, num % 'test%s', macros=macros, prep=prep)
        finally:
            os.dup2(stdout, sys.stdout.fileno())
            os.dup2(stderr, sys.stderr.fileno())
            os.close(null)
            os.close(stdout)
            os.close(stderr)
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.cookTestPkg/swapped operands of `%`