tests and improvements for __next__ and send generator methods

This commit is contained in:
Dave Halter
2014-01-23 20:02:36 +01:00
parent 162d794081
commit e587b876b6
3 changed files with 29 additions and 6 deletions

View File

@@ -118,8 +118,21 @@ b
#? ['__call__']
gen().close.__call__
#?
gen().throw()
#? ['co_consts']
gen().gi_code.co_consts
#? []
gen.gi_code.co_consts
# `send` is also a method wrapper.
#? ['__call__']
gen().send.__call__
#? tuple()
gen().send()
#?
gen()()