summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2020-10-07 19:33:26 -0400
committerRusty Wagner <rusty@vector35.com>2020-10-08 22:20:58 -0400
commitb3370836d13effb521cc35a603bcae90d1893f87 (patch)
tree4f5d12ec91dadc12f2dfd7642bbfbd521c79f204
parente145ab8a16ab72b00278f7967a9df5e4af48556e (diff)
Dropping support for Python 2 in unit tests
-rwxr-xr-xsuite/generator.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/suite/generator.py b/suite/generator.py
index a349789e..d0120304 100755
--- a/suite/generator.py
+++ b/suite/generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
import pickle
import sys
import os
@@ -7,12 +7,8 @@ from optparse import OptionParser
import testcommon
import time
-if sys.version_info.major == 3:
- # The differences between the behavior of str() on Python 2 and Python 3 make it very difficult to make
- # test results created on Python 3 work when testing on Python 2. Test results generated with Python 2
- # will work when testing on both Python 2 and Python 3.
- # FIXME: When Python 2 is dropped fully, use Python 3 to generate the tests.
- print("Generate unit tests on Python 2. Python 3 generated test results are NOT COMPATIBLE with Python 2.")
+if sys.version_info.major == 2:
+ print("Generate unit tests on Python 3. Python 2 is not compatible.")
sys.exit(1)
unit_test_template = """#!/usr/bin/env python