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
16df2499
Commit
16df2499
authored
Dec 11, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed a bit of cruft
parent
3c3cb7b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
lib/python/Shared/DC/ZRDB/tests/testSQLAlias.py
lib/python/Shared/DC/ZRDB/tests/testSQLAlias.py
+1
-23
No files found.
lib/python/Shared/DC/ZRDB/tests/testSQLAlias.py
View file @
16df2499
...
...
@@ -2,7 +2,7 @@
#----------------------------------------------------------------------
# Unit tests for SQLAlias objects
#----------------------------------------------------------------------
# __version__ = "$Revision: 1.
1
$"[11:-2]
# __version__ = "$Revision: 1.
2
$"[11:-2]
from
unittest
import
TestSuite
,
TestCase
from
Shared.DC.ZRDB.RDB
import
SQLAlias
,
NoBrains
...
...
@@ -87,33 +87,11 @@ class RecordMemLeakTest(TestCase):
'SQLAlias leaked after access through a Record instance!'
class
RecordMemLeakTest2
(
TestCase
):
"""Test for memory leak of SQLAliases accessed through a
Record instance."""
def
runTest
(
self
):
# get starting refcount
start_refs
=
refcount
()
# set up the instance with an alias, access through the
# alias, then delete the instance; refcount should be
# back to start_refs after the delete.
object
=
make_record
()
value
=
object
.
realname
object
.
__dict__
.
clear
()
del
object
# check the refcount
assert
start_refs
==
refcount
(),
\
'SQLAlias leaked after access through a Record instance!'
def
test_suite
():
suite
=
TestSuite
()
suite
.
addTest
(
ClassMemLeakTest
())
suite
.
addTest
(
RecordMemLeakTest
())
suite
.
addTest
(
RecordMemLeakTest2
())
return
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