Commit c9be817b authored by Jérome Perrin's avatar Jérome Perrin

fixup! testRestrictedPythonSecurity: disable crypt AuthEncoding test

This was not patching the right place (I should have used mock ...)
parent be051293
......@@ -683,10 +683,10 @@ def test_suite():
def setUp(self):
self._original_AuthEncoding_schemes = AccessControl.AuthEncoding._schemes[::]
AccessControl.AuthEncoding._schemes = [s for s in AccessControl.AuthEncoding._schemes if s[0] != 'CRYPT']
AccessControl.tests.testPasswordDigest.setUp = setUp
AccessControl.tests.testPasswordDigest.PasswordDigestTests.setUp = setUp
def tearDown(self):
AccessControl.AuthEncoding._schemes = self._original_AuthEncoding_schemes
AccessControl.tests.testPasswordDigest.tearDown = tearDown
AccessControl.tests.testPasswordDigest.PasswordDigestTests.tearDown = tearDown
suite.addTest(AccessControl.tests.testPasswordDigest.test_suite())
import AccessControl.tests.testPermissionMapping
suite.addTest(AccessControl.tests.testPermissionMapping.test_suite())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment