Skip to content

Commit

Permalink
remove deprecated test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Jan 6, 2024
1 parent b7d6d9e commit 1ffdace
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions unittests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
from asyncstdlib import _utility
from asyncstdlib import _core

from .utility import sync


def test_slot_get():
class Slotted:
data = 3

def __neg__(self):
return -type(self).data

instance = Slotted()
assert _utility.slot_get(instance, "data") is instance.data
assert _utility.slot_get(instance, "__neg__")() == -instance
assert _utility.slot_get(instance, "__neg__")() == instance.__neg__()
data, neg = instance.data, -instance
instance.data = 4
instance.__neg__ = lambda self: 12
assert _utility.slot_get(instance, "data") is data
assert _utility.slot_get(instance, "__neg__")() == neg


@sync
async def test_scoped_iter_graceful():
class AIterator:
Expand Down

0 comments on commit 1ffdace

Please sign in to comment.