From 3c5cb27885a542e0c0ba80e6c9b776859a29d2ff Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 16 Sep 2022 11:36:28 +1200 Subject: [PATCH] pytests: remove backwards compat workaround for python 2.6 Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/tests/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index e27dd2ff5a5..1a8576137c5 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -51,11 +51,8 @@ import samba.ndr import samba.dcerpc.dcerpc import samba.dcerpc.epmapper -try: - from unittest import SkipTest -except ImportError: - class SkipTest(Exception): - """Test skipped.""" +from unittest import SkipTest + BINDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../bin"))