mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user