| 1 | import os |
| 2 | import sys |
| 3 | from test.support import requires, load_package_tests |
| 4 | from test.support.import_helper import import_module |
| 5 | |
| 6 | if sys.platform != "win32": |
| 7 | # On non-Windows platforms, testing pyrepl currently requires that the |
| 8 | # 'curses' resource be given on the regrtest command line using the -u |
| 9 | # option. Additionally, we need to attempt to import curses and readline. |
| 10 | requires("curses") |
| 11 | curses = import_module("curses") |
| 12 | |
| 13 | |
| 14 | def load_tests(*args): |
| 15 | return load_package_tests(os.path.dirname(__file__), *args) |