def run_tests():
    testfolder = os.path.abspath(os.path.split(__file__)[0])

    sys.path.append(testfolder)


    for root, dirs, files in os.walk(testfolder):
        test_modules = [
            file.replace('.py', '') for file in files if
                file.startswith('test_') and
                file.endswith('.py')]

        test_modules = [mod for mod in test_modules if excludes not in mod.lower()]
        for mod in test_modules:

            #globals().update(__import__(mod, globals(), locals()).__dict__)
            # import it
            imported_mod = __import__(mod, globals(), locals())
            #print imported_mod.__dict__
            globals().update(imported_mod.__dict__)


    #runner = unittest.TextTestRunner(verbosity = 2)
    unittest.main()#testRunner = runner)
dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/Browser Refresh/win/pywinauto/unittests/testall.py/run_tests/swapped operands of `not in`