| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
import os |
| 7 |
import sysconfig |
| 8 |
import unittest |
| 9 |
from test import support |
| 10 |
|
| 11 |
|
| 12 |
if support.MS_WINDOWS: |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
raise unittest.SkipTest("test_gdb doesn't work on Windows") |
| 17 |
|
| 18 |
if support.PGO: |
| 19 |
raise unittest.SkipTest("test_gdb is not useful for PGO") |
| 20 |
|
| 21 |
if not sysconfig.is_python_build(): |
| 22 |
raise unittest.SkipTest("test_gdb only works on source builds at the moment.") |
| 23 |
|
| 24 |
if support.check_cflags_pgo(): |
| 25 |
raise unittest.SkipTest("test_gdb is not reliable on PGO builds") |
| 26 |
|
| 27 |
|
| 28 |
def load_tests(*args): |
| 29 |
return support.load_package_tests(os.path.dirname(__file__), *args) |