mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Hack the pubsub unittests so they are at least importable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10,11 +10,11 @@ import wtc
|
||||
|
||||
from wx.lib.pubsub.core.weakmethod import WeakMethod
|
||||
from wx.lib.pubsub.core import listener
|
||||
from wx.lib.pubsub.core.listener import \
|
||||
Listener, ListenerValidator, \
|
||||
ListenerInadequate, \
|
||||
CallArgsInfo, \
|
||||
getArgs
|
||||
from wx.lib.pubsub.core.listener import (
|
||||
Listener, ListenerValidator,
|
||||
#ListenerInadequate,
|
||||
CallArgsInfo,
|
||||
getArgs)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -9,12 +9,12 @@ import imp_unittest, unittest
|
||||
import wtc
|
||||
|
||||
|
||||
from wx.lib.pubsub.core.topicargspec import \
|
||||
ArgsInfo, \
|
||||
ArgSpecGiven, \
|
||||
SenderMissingReqdArgs, \
|
||||
SenderUnknownOptArgs
|
||||
|
||||
from wx.lib.pubsub.core.topicargspec import (
|
||||
ArgsInfo,
|
||||
ArgSpecGiven,
|
||||
#SenderMissingReqdArgs,
|
||||
#SenderUnknownOptArgs
|
||||
)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ from wx.lib.pubsub.core.topicobj import Topic
|
||||
from wx.lib.pubsub.core.treeconfig import TreeConfig
|
||||
from wx.lib.pubsub.core.topicutils import ALL_TOPICS
|
||||
from wx.lib.pubsub.core.topicargspec import ArgsInfo, ArgSpecGiven
|
||||
from wx.lib.pubsub.core.listener import ListenerInadequate
|
||||
from wx.lib.pubsub.core.topicexc import ListenerSpecInvalid
|
||||
#from wx.lib.pubsub.core.listener import ListenerInadequate
|
||||
#from wx.lib.pubsub.core.topicexc import ListenerSpecInvalid
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,26 +9,27 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
|
||||
from wx.lib.pubsub.pub import \
|
||||
ALL_TOPICS, \
|
||||
ListenerSpecInvalid, \
|
||||
ITopicDefnProvider, \
|
||||
TopicTreeTraverser, \
|
||||
UndefinedTopic, \
|
||||
UndefinedSubtopic, \
|
||||
ListenerNotValidatable
|
||||
from wx.lib.pubsub.pub import (
|
||||
ALL_TOPICS,
|
||||
#ListenerSpecInvalid,
|
||||
#ITopicDefnProvider,
|
||||
TopicTreeTraverser,
|
||||
#UndefinedTopic,
|
||||
#UndefinedSubtopic,
|
||||
#ListenerNotValidatable
|
||||
)
|
||||
|
||||
from wx.lib.pubsub.core.topicmgr import \
|
||||
ArgSpecGiven
|
||||
|
||||
from wx.lib.pubsub.core.topicutils import \
|
||||
TopicNameInvalid, \
|
||||
from wx.lib.pubsub.core.topicutils import (
|
||||
#TopicNameInvalid,
|
||||
validateName
|
||||
)
|
||||
|
||||
from wx.lib.pubsub.utils.topictreeprinter import \
|
||||
printTreeDocs, ITopicTreeVisitor
|
||||
|
||||
|
||||
class lib_pubsub_TopicMgr0_Basic(wtc.PubsubTestCase):
|
||||
"""
|
||||
Only tests TopicMgr methods. This must use some query methods on
|
||||
|
||||
Reference in New Issue
Block a user