mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
pytests: remove backwards compat workaround for python 2.6
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2775d6b5d1
commit
3c5cb27885
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user