mirror of https://github.com/go-python/gopy.git
bind: add test script for interfaces
Change-Id: Iba3902544ebf5e1d0a7846803bcb628518334f7b
This commit is contained in:
parent
d4e4779d2f
commit
6d80c41494
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2015 The go-python Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
## py2/py3 compat
|
||||
from __future__ import print_function
|
||||
|
||||
import iface
|
||||
|
||||
### test docs
|
||||
print("doc(iface): %r" % (iface.__doc__,))
|
||||
|
||||
print("t = iface.T()")
|
||||
t = iface.T()
|
||||
print("t.F()")
|
||||
t.F()
|
||||
|
||||
print("iface.CallIface(t)")
|
||||
iface.CallIface(t)
|
||||
|
Loading…
Reference in New Issue