Raise an exception under Python < 3.4.

It also cleans up the README to remove references to Python 2
and removes Python 2-isms from the main config.

refs #5443
This commit is contained in:
Dave Page
2020-04-30 14:17:00 +05:30
committed by Akshay Joshi
parent 109051e1d5
commit 7dd00a1494
4 changed files with 28 additions and 41 deletions

View File

@@ -24,10 +24,10 @@ import coverage
import unittest
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
if sys.version_info < (3, 4):
raise Exception('The test suite must be run under Python 3.4 or later.')
import builtins
# Ensure the global server mode is set.
builtins.SERVER_MODE = None