diff options
| author | 2021-01-31 16:35:03 +0100 | |
|---|---|---|
| committer | 2021-01-31 16:35:03 +0100 | |
| commit | 23fd8717102153bc13f90658f94d8df0ed9bee3e (patch) | |
| tree | 26c6286576137fbad5be225b5da6befd45f0abd8 | |
| parent | 2d66565e32db7cc317a9f7aa07ec18f17b7004f8 (diff) | |
Explicit python version requirement
| -rw-r--r-- | regtests/tool_tester/test_tools.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/regtests/tool_tester/test_tools.py b/regtests/tool_tester/test_tools.py index 11e8ce64582..cdfc8e1e1f7 100644 --- a/regtests/tool_tester/test_tools.py +++ b/regtests/tool_tester/test_tools.py @@ -10,10 +10,14 @@ from tool_tester.pngcmp import PngCmpTests from tool_tester.unidasm import UnidasmTests if __name__ == "__main__": + # TODO: proper requirements.txt / setup.py or virtual env management + # dataclasses aren't supported in anything prior to 3.7 (dacite lib 3.6) + assert sys.version_info >= (3, 7), f"python version {sys.version_info.major}.{sys.version_info.minor} < 3.7" + # TODO: add colorized messages # TODO: argparse the logging level logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) - + # TODO: for now I'll just use class handlers here to chain test sources # In an ideal world you want to collect items thru inspect module instead # https://docs.python.org/3/library/inspect.html |
