mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-30 00:31:59 +00:00
Require Py3 for tests
This commit is contained in:
parent
6d5d8be708
commit
b2168e11db
@ -4,6 +4,12 @@ from subprocess import Popen, PIPE
|
||||
import os
|
||||
import shutil
|
||||
from contextlib import suppress
|
||||
import sys
|
||||
|
||||
if sys.version_info.major < 3:
|
||||
from __future__ import print_function
|
||||
print("Requires Python 3.4+")
|
||||
sys.exit(1)
|
||||
|
||||
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
|
||||
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user