Skip to content

Commit 348bc8e

Browse files
committed
format
1 parent 4243c24 commit 348bc8e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_slots.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
import functools
88
import pickle
99
import weakref
10+
from itertools import zip_longest
1011

1112
from pathlib import Path
1213
from tempfile import TemporaryDirectory
1314
from unittest import mock
1415

16+
import hypothesis.strategies as st
1517
import pytest
18+
from hypothesis import given
19+
20+
from attr._make import _TupleProxy
1621

1722

1823
try:
@@ -752,15 +757,14 @@ def test_tuple_proxy(t):
752757
It's not a tuple for the purposes of :func:`isinstance` and that's about it
753758
"""
754759
prox = _TupleProxy(t)
755-
assert(len(t) == len(prox))
760+
assert len(t) == len(prox)
756761
for a, b in zip_longest(t, prox):
757762
assert a is b
758763
for i in range(len(prox)):
759764
assert t[i] is prox[i]
760765
assert not isinstance(prox, tuple)
761766

762767

763-
764768
@attr.s(slots=True)
765769
class SphinxDocTest:
766770
"""Test that slotted cached_property shows up in Sphinx docs"""

0 commit comments

Comments
 (0)