blob: c7d2a2adc9ed3eb11f921e3a89cd75ad0e2e0af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# For printing the python version during tests.
import platform
import sys
try:
impl = platform.python_implementation()
except AttributeError:
impl = "Python"
version = platform.python_version()
if '__pypy__' in sys.builtin_module_names:
version += " (pypy %s)" % ".".join([str(v) for v in sys.pypy_version_info])
print('=== %s %s %s (%s) ===' % (impl, version, sys.argv[1], sys.executable))
|