コード例 #1
0
 def testNotifications(self):
     capture = StringIO()
     logger = notification.useNotifyByWriteFile(capture)
     def block():
         def listener(): pass
         self.pub.subscribe(listener, 'testNotifications')
     block()
コード例 #2
0
 def captureStdout():
     from six import StringIO
     capture = StringIO()
     useNotifyByWriteFile(fileObj=capture)
     return capture
コード例 #3
0
 def captureStdout():
     from wx.lib.six import StringIO
     capture = StringIO()
     useNotifyByWriteFile( fileObj = capture )
     return capture