| 1 |
import unittest |
| 2 |
import test.test_tools |
| 3 |
from test.support.warnings_helper import save_restore_warnings_filters |
| 4 |
|
| 5 |
test.test_tools.skip_if_missing('c-analyzer') |
| 6 |
with test.test_tools.imports_under_tool('c-analyzer'): |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
with save_restore_warnings_filters(): |
| 11 |
from cpython.__main__ import main |
| 12 |
|
| 13 |
|
| 14 |
class ActualChecks(unittest.TestCase): |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
@unittest.skip('activate this once all the globals have been resolved') |
| 20 |
def test_check_c_globals(self): |
| 21 |
try: |
| 22 |
main('check', {}) |
| 23 |
except NotImplementedError: |
| 24 |
raise unittest.SkipTest('not supported on this host') |
| 25 |
|
| 26 |
|
| 27 |
if __name__ == '__main__': |
| 28 |
|
| 29 |
unittest.main() |