Skip to content

Commit

Permalink
Remove obsolete StopIteration test
Browse files Browse the repository at this point in the history
No longer necessary after changes in #13

Fixes #17
  • Loading branch information
nocarryr committed Apr 27, 2022
1 parent 0aa977b commit d4c81a2
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/test_subclass_init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import math
import time
import warnings

def test_dispatcher_construction():
from pydispatch import Dispatcher, Property
Expand All @@ -20,15 +17,8 @@ class B(A):
'on_even_more_stuff', 'on_one_more_thing'
]

with warnings.catch_warnings(record=True) as w_list:
warnings.simplefilter("always")
a = A()
b = B()
for w in w_list:
# Check for PEP-0479 (StopIteration) issues
assert not issubclass(w.category, DeprecationWarning)
assert not issubclass(w.category, PendingDeprecationWarning)
assert len(w_list) == 0
a = A()
b = B()

a_prop_names = {'foo', 'bar', 'baz'}
a_event_names = {'on_stuff', 'on_more_stuff'}
Expand Down

0 comments on commit d4c81a2

Please sign in to comment.