diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-17 08:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-17 08:06:58 +0000 |
commit | 29394d0921808a94a409f01eff49f681651de5d5 (patch) | |
tree | 93d18027cb4ea68a3c967602c5793af032180bab /sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch | |
parent | 5987fa693ef880163ebde423615a177cb5bda20e (diff) |
gentoo auto-resync : 17:02:2023 - 08:06:58
Diffstat (limited to 'sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch')
-rw-r--r-- | sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch b/sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch new file mode 100644 index 000000000000..aba9c370a22c --- /dev/null +++ b/sys-libs/pam_wrapper/files/pam_wrapper-1.1.4-tests-import.patch @@ -0,0 +1,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: |