@@ -138,7 +138,7 @@ def test_enumerations(self):
138138 self .end_test ()
139139
140140 def test_events (self ):
141- from Python .Test import EventTest , TestEventArgs
141+ from Python .Test import EventTest , EventArgsTest
142142
143143 self .notify ("Running event leak check..." )
144144
@@ -151,55 +151,55 @@ def test_events(self):
151151 # Instance method event handler
152152 handler = GenericHandler ()
153153 testob .PublicEvent += handler .handler
154- testob .PublicEvent (testob , TestEventArgs (10 ))
154+ testob .PublicEvent (testob , EventArgsTest (10 ))
155155 testob .PublicEvent -= handler .handler
156156 del handler
157157
158158 # Vararg method event handler
159159 handler = VariableArgsHandler ()
160160 testob .PublicEvent += handler .handler
161- testob .PublicEvent (testob , TestEventArgs (10 ))
161+ testob .PublicEvent (testob , EventArgsTest (10 ))
162162 testob .PublicEvent -= handler .handler
163163 del handler
164164
165165 # Callable object event handler
166166 handler = CallableHandler ()
167167 testob .PublicEvent += handler
168- testob .PublicEvent (testob , TestEventArgs (10 ))
168+ testob .PublicEvent (testob , EventArgsTest (10 ))
169169 testob .PublicEvent -= handler
170170 del handler
171171
172172 # Callable vararg event handler
173173 handler = VarCallableHandler ()
174174 testob .PublicEvent += handler
175- testob .PublicEvent (testob , TestEventArgs (10 ))
175+ testob .PublicEvent (testob , EventArgsTest (10 ))
176176 testob .PublicEvent -= handler
177177 del handler
178178
179179 # Static method event handler
180180 handler = StaticMethodHandler ()
181181 StaticMethodHandler .value = None
182182 testob .PublicEvent += handler .handler
183- testob .PublicEvent (testob , TestEventArgs (10 ))
183+ testob .PublicEvent (testob , EventArgsTest (10 ))
184184 testob .PublicEvent -= handler .handler
185185 del handler
186186
187187 # Class method event handler
188188 handler = ClassMethodHandler ()
189189 ClassMethodHandler .value = None
190190 testob .PublicEvent += handler .handler
191- testob .PublicEvent (testob , TestEventArgs (10 ))
191+ testob .PublicEvent (testob , EventArgsTest (10 ))
192192 testob .PublicEvent -= handler .handler
193193 del handler
194194
195195 # Managed instance event handler
196196 testob .PublicEvent += testob .GenericHandler
197- testob .PublicEvent (testob , TestEventArgs (10 ))
197+ testob .PublicEvent (testob , EventArgsTest (10 ))
198198 testob .PublicEvent -= testob .GenericHandler
199199
200200 # Static managed event handler
201201 testob .PublicEvent += EventTest .StaticHandler
202- testob .PublicEvent (testob , TestEventArgs (10 ))
202+ testob .PublicEvent (testob , EventArgsTest (10 ))
203203 testob .PublicEvent -= EventTest .StaticHandler
204204
205205 # Function event handler
@@ -209,7 +209,7 @@ def handler(sender, args, dict_=dict_):
209209 dict_ ['value' ] = args .value
210210
211211 testob .PublicEvent += handler
212- testob .PublicEvent (testob , TestEventArgs (10 ))
212+ testob .PublicEvent (testob , EventArgsTest (10 ))
213213 testob .PublicEvent -= handler
214214 del handler
215215
0 commit comments