Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
318491b7
Commit
318491b7
authored
Jan 31, 2018
by
Paul McCarthy
🚵
Browse files
Weakfuncref test
parent
5634900f
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_weakfuncref.py
View file @
318491b7
...
...
@@ -24,6 +24,18 @@ def make_weakfuncref_method_that_will_get_gcd():
return
weakfuncref
.
WeakFunctionRef
(
Thing
.
method
)
def
test_weakfuncref_call
():
def
func
():
pass
non_gcd_func
=
weakfuncref
.
WeakFunctionRef
(
func
)
gcd_func
=
make_weakfuncref_that_will_get_gcd
()
assert
gcd_func
()
is
None
assert
non_gcd_func
()
is
func
def
test_weakfuncref_function
():
def
func
():
...
...
Write
Preview
Supports
Markdown
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