Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
nexedi
ZODB
Commits
b23a3ca2
Commit
b23a3ca2
authored
Mar 06, 2004
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed a mysterious, non-sensical broken test.
parent
3836b940
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
src/persistent/tests/persistenttestbase.py
src/persistent/tests/persistenttestbase.py
+25
-20
No files found.
src/persistent/tests/persistenttestbase.py
View file @
b23a3ca2
...
...
@@ -266,26 +266,31 @@ class Test(unittest.TestCase):
self
.
assert_
(
P
.
__dictoffset__
<
P
.
__weakrefoffset__
)
self
.
assert_
(
P
.
__basicsize__
>
Persistent
.
__basicsize__
)
def
testDeactivateErrors
(
self
):
p
=
self
.
klass
()
p
.
_p_oid
=
'
\
0
\
0
\
0
\
0
\
0
\
0
hi'
dm
=
DM
()
p
.
_p_jar
=
dm
def
typeerr
(
*
args
,
**
kwargs
):
self
.
assertRaises
(
TypeError
,
p
,
*
args
,
**
kwargs
)
typeerr
(
1
)
typeerr
(
1
,
2
)
typeerr
(
spam
=
1
)
typeerr
(
spam
=
1
,
force
=
1
)
p
.
_p_changed
=
True
class
Err
(
object
):
def
__nonzero__
(
self
):
raise
RuntimeError
typeerr
(
force
=
Err
())
# XXX Can anyone defend/explain the test below? The tests classes defined here
# don't define __call__, so this weird test will always pass, but to what
# end? What the heck is the point. If a klass is given that happens
# to define __call__, the test *may* mysteriously fail. Who cares?
## def testDeactivateErrors(self):
## p = self.klass()
## p._p_oid = '\0\0\0\0\0\0hi'
## dm = DM()
## p._p_jar = dm
## def typeerr(*args, **kwargs):
## self.assertRaises(TypeError, p, *args, **kwargs)
## typeerr(1)
## typeerr(1, 2)
## typeerr(spam=1)
## typeerr(spam=1, force=1)
## p._p_changed = True
## class Err(object):
## def __nonzero__(self):
## raise RuntimeError
## typeerr(force=Err())
class
P
(
Persistent
):
def
__init__
(
self
):
...
...
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