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
09c83e45
Commit
09c83e45
authored
Jan 08, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getting rid of zLOG
parent
c69def3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
lib/python/Testing/common.py
lib/python/Testing/common.py
+0
-25
No files found.
lib/python/Testing/common.py
View file @
09c83e45
...
@@ -42,31 +42,6 @@ class Dummy:
...
@@ -42,31 +42,6 @@ class Dummy:
__repr__
=
__str__
__repr__
=
__str__
def
catch_log_errors
():
import
zLOG
if
hasattr
(
zLOG
,
'old_log_write'
):
return
def
log_write
(
subsystem
,
severity
,
summary
,
detail
,
error
,
PROBLEM
=
zLOG
.
PROBLEM
):
# we are logging an exception - lets assume that the last exception
# raised was the one we're interested in, so re-raise it rather
# than the less-than-useful assert below
if
error
is
not
None
:
raise
if
severity
>
PROBLEM
:
assert
0
,
"%s(%s): %s"
%
(
subsystem
,
severity
,
summary
)
zLOG
.
old_log_write
=
zLOG
.
log_write
zLOG
.
log_write
=
log_write
def
ignore_log_errors
():
import
zLOG
if
hasattr
(
zLOG
,
'old_log_write'
):
zLOG
.
log_write
=
zLOG
.
old_log_write
del
zLOG
.
old_log_write
def
Testing_file
(
*
args
):
def
Testing_file
(
*
args
):
dir
=
os
.
path
.
split
(
Testing
.
__file__
)[
0
]
dir
=
os
.
path
.
split
(
Testing
.
__file__
)[
0
]
...
...
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