Test that generate_test_code.py is still compatible with Python 2

When Mbed TLS 2.16 was released, the requirement was Python 2, not
Python 3. Since then, upstream Python 2 support has stopped, but it is
still maintained in some long-term-support distributions. For the sake
of users who build the unit tests in such environments, test that
generate_test_code.py remains compatible with Python 2.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2021-05-06 15:07:29 +02:00
parent 484df7583b
commit 3c546f71c9
3 changed files with 17 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env python3
# This script should still be compatible with Python 2 in Mbed TLS 2.16.x.
# Test suites code generator.
#
# Copyright The Mbed TLS Contributors