[PATCH 46/55] Use Samba TestCase class, as the python 2.6 one doesn't have assertIs, assertIsInstance or addCleanup.

Jelmer Vernooij jelmer at samba.org
Fri Feb 6 12:04:18 MST 2015


Change-Id: I3daeffade0dac9795f61f91ee0da35fee0143a38
Signed-Off-By: Jelmer Vernooij <jelmer at samba.org>
---
 selftest/tests/test_run.py      | 2 +-
 selftest/tests/test_testlist.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/selftest/tests/test_run.py b/selftest/tests/test_run.py
index 829f488..0a5a0ff 100644
--- a/selftest/tests/test_run.py
+++ b/selftest/tests/test_run.py
@@ -25,6 +25,7 @@ from samba.subunit import (
     PROGRESS_PUSH,
     PROGRESS_POP,
     )
+from samba.tests import TestCase
 import tempfile
 
 from selftest.run import (
@@ -36,7 +37,6 @@ from selftest.run import (
     run_testsuite_command,
     )
 
-from unittest import TestCase
 
 
 class ExpandEnvironmentStringsTests(TestCase):
diff --git a/selftest/tests/test_testlist.py b/selftest/tests/test_testlist.py
index c0bbebf..d82b00c 100644
--- a/selftest/tests/test_testlist.py
+++ b/selftest/tests/test_testlist.py
@@ -22,7 +22,7 @@
 import os
 import tempfile
 
-from unittest import TestCase
+from samba.tests import TestCase
 
 from selftest.testlist import (
     RestrictedTestManager,
-- 
2.1.4



More information about the samba-technical mailing list