diff --git a/tests/test_plat_other.py b/tests/test_plat_other.py index b94295d..ae4f391 100644 --- a/tests/test_plat_other.py +++ b/tests/test_plat_other.py @@ -6,7 +6,11 @@ from os import path as op import send2trash.plat_other from send2trash.plat_other import send2trash as s2t from send2trash.compat import PY3 -from configparser import ConfigParser +try: + from configparser import ConfigParser +except ImportError: + # py2 + from ConfigParser import ConfigParser from tempfile import mkdtemp, NamedTemporaryFile, mktemp import shutil import stat