Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
677dc39d
Commit
677dc39d
authored
Dec 18, 2003
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put default warning filters back, so that 'make test' runs cleanly.
parent
602c0fcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
lib/python/AccessControl/tests/testDeprecatedAPI.py
lib/python/AccessControl/tests/testDeprecatedAPI.py
+4
-2
lib/python/Zope/Startup/tests/test_warnfilter.py
lib/python/Zope/Startup/tests/test_warnfilter.py
+2
-0
No files found.
lib/python/AccessControl/tests/testDeprecatedAPI.py
View file @
677dc39d
...
...
@@ -16,8 +16,8 @@ To be removed together with the API in due time.
"""
__rcs_id__
=
'$Id: testDeprecatedAPI.py,v 1.
5 2003/01/27 22:55:27 gvanrossum
Exp $'
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: testDeprecatedAPI.py,v 1.
6 2003/12/18 19:58:06 evan
Exp $'
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
ZODB
# Sigh. Persistent needs to be set, so we import ZODB.
from
AccessControl
import
User
...
...
@@ -50,6 +50,8 @@ class DeprecatedAPI(unittest.TestCase):
def
tearDown
(
self
):
warnings
.
resetwarnings
()
warnings
.
simplefilter
(
"ignore"
,
category
=
PendingDeprecationWarning
)
warnings
.
simplefilter
(
"ignore"
,
category
=
OverflowWarning
)
class
BasicUser
(
DeprecatedAPI
):
userObject
=
User
.
SimpleUser
(
'JoeBloke'
,
'123'
,
[],
[])
...
...
lib/python/Zope/Startup/tests/test_warnfilter.py
View file @
677dc39d
...
...
@@ -49,6 +49,8 @@ class TestWarnFilter(unittest.TestCase):
def
tearDown
(
self
):
warnings
.
resetwarnings
()
warnings
.
simplefilter
(
"ignore"
,
category
=
PendingDeprecationWarning
)
warnings
.
simplefilter
(
"ignore"
,
category
=
OverflowWarning
)
def
load_config_text
(
self
,
text
):
# We have to create a directory of our own since the existence
...
...
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