Debian Codegraph @

Lib/test/test_capi/test_pyatomic.py

raw
1 import unittest
2 from test.support import import_helper
3
4 # Skip this test if the _testcapi module isn't available.
5 _testcapi = import_helper.import_module('_testcapi')
6
7 class PyAtomicTests(unittest.TestCase):
8 pass
9
10 for name in sorted(dir(_testcapi)):
11 if name.startswith('test_atomic'):
12 setattr(PyAtomicTests, name, getattr(_testcapi, name))
13
14 if __name__ == "__main__":
15 unittest.main()