python.tests: fix test that broke for unknown reason on python 2.7.12
parent
9055ff5189
commit
40c277499d
|
@ -12,15 +12,15 @@ IN: python
|
||||||
] py-test
|
] py-test
|
||||||
|
|
||||||
! Pretty sure the # of None references should stay constant.
|
! Pretty sure the # of None references should stay constant.
|
||||||
|
: count-none-refs ( -- n )
|
||||||
|
[
|
||||||
|
"sys" py-import "getrefcount" getattr
|
||||||
|
<none> <1py-tuple> call-object py>
|
||||||
|
] with-destructors ;
|
||||||
{ t } [
|
{ t } [
|
||||||
[
|
! For some reason, the count increased by one the first time.
|
||||||
"sys" py-import "getrefcount" getattr
|
count-none-refs drop
|
||||||
<none> <1py-tuple> call-object py>
|
count-none-refs count-none-refs =
|
||||||
] with-destructors
|
|
||||||
[
|
|
||||||
"sys" py-import "getrefcount" getattr
|
|
||||||
<none> <1py-tuple> call-object py>
|
|
||||||
] with-destructors =
|
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
{ } [ { f f f } >py drop ] py-test
|
{ } [ { f f f } >py drop ] py-test
|
||||||
|
|
Loading…
Reference in New Issue