Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
17e1460a
Commit
17e1460a
authored
Jan 11, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testRestrictedPythonSecurity: disable crypt AuthEncoding test
parent
3249ff62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testRestrictedPythonSecurity.py
...rtal_components/test.erp5.testRestrictedPythonSecurity.py
+11
-0
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testRestrictedPythonSecurity.py
View file @
17e1460a
...
...
@@ -676,6 +676,17 @@ def test_suite():
import
AccessControl.tests.testOwned
suite
.
addTest
(
AccessControl
.
tests
.
testOwned
.
test_suite
())
import
AccessControl.tests.testPasswordDigest
# Disable crypt scheme, we don't want to use CRYPT and it fails on debian 11.
# This is also disabled in github.com/zopefoundation/AuthEncoding commit
# fbbdcf3 (Allow the CRYPT test to fail as it is the case on GHA., 2021-04-08)
import
AccessControl.AuthEncoding
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
def
tearDown
(
self
):
AccessControl
.
AuthEncoding
.
_schemes
=
self
.
_original_AuthEncoding_schemes
AccessControl
.
tests
.
testPasswordDigest
.
tearDown
=
tearDown
suite
.
addTest
(
AccessControl
.
tests
.
testPasswordDigest
.
test_suite
())
import
AccessControl.tests.testPermissionMapping
suite
.
addTest
(
AccessControl
.
tests
.
testPermissionMapping
.
test_suite
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment