Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cce2267c
Commit
cce2267c
authored
Mar 20, 2006
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plug a leak in the ctypes test suite when tests are run repeatedly.
parent
d59ca8f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/ctypes/test/test_keeprefs.py
Lib/ctypes/test/test_keeprefs.py
+5
-0
No files found.
Lib/ctypes/test/test_keeprefs.py
View file @
cce2267c
...
...
@@ -140,5 +140,10 @@ class PointerToStructure(unittest.TestCase):
r
.
a
[
0
].
x
=
42
r
.
a
[
0
].
y
=
99
# to avoid leaking when tests are run several times
# clean up the types left in the cache.
from
ctypes
import
_pointer_type_cache
del
_pointer_type_cache
[
POINT
]
if
__name__
==
"__main__"
:
unittest
.
main
()
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