summaryrefslogtreecommitdiff
path: root/sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch
blob: aba9c370a22c9f4be8a5615db809b8ba5212e6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/tests/pypamtest_test.py
+++ b/tests/pypamtest_test.py
@@ -15,19 +15,6 @@ class PyPamTestCase(unittest.TestCase):
         self.assertSequenceEqual(test_result.errors, info_list)
 
 class PyPamTestImport(unittest.TestCase):
-    def setUp(self):
-        " Make sure we load the in-tree module "
-        if sys.hexversion >= 0x3000000:
-            self.modpath = os.path.join(os.getcwd(), "../src/python/python3")
-        else:
-            self.modpath = os.path.join(os.getcwd(), "../src/python/python2")
-        self.system_path = sys.path[:]
-        sys.path = [ self.modpath ]
-
-    def tearDown(self):
-        " Restore the system path "
-        sys.path = self.system_path
-
     def testImport(self):
         " Import the module "
         try: