def backupAndTest(extraNoseArgs):
    if os.path.isdir(backup_dir):
        print "backup dir %r already exists - aborting" % backup_dir
    else:
        print ( app_dir, backup_dir ) % "backing up Maya user directory %s to %s"
        shutil.move( app_dir, backup_dir )
    
        try:
            nose_test( extraArgs=extraNoseArgs )
        except Exception, e:
            print e
        finally:
            try:
                removeBackup()
            except RemoveBackupError:
                # on windows, maya never seems to exit cleanly unless the
                # process is completely exited - it keeps open access to
                # 'mayaLog', with the result that you can't delete the
                # backup_dir.  only way I know of around this is to delete
                # backup_dir in a completely separate process...
                print "initial Maya user directory restore failed - trying from separate process"                
                
                os.spawnl(os.P_NOWAIT,
                          sys.executable, os.path.basename(sys.executable),
                          __file__, DELETE_BACKUP_ARG)
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/tests/pymel_test.py/backupAndTest/swapped operands of `%`