mirror of https://github.com/MagicStack/uvloop.git
17 lines
356 B
Python
17 lines
356 B
Python
|
import os.path
|
||
|
import sys
|
||
|
import unittest
|
||
|
import unittest.runner
|
||
|
|
||
|
|
||
|
def suite():
|
||
|
test_loader = unittest.TestLoader()
|
||
|
test_suite = test_loader.discover(os.path.dirname(__file__))
|
||
|
return test_suite
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
runner = unittest.runner.TextTestRunner()
|
||
|
result = runner.run(suite())
|
||
|
sys.exit(not result.wasSuccessful())
|