File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import functools
88import pickle
99import weakref
10+ from itertools import zip_longest
1011
1112from pathlib import Path
1213from tempfile import TemporaryDirectory
1314from unittest import mock
1415
16+ import hypothesis .strategies as st
1517import pytest
18+ from hypothesis import given
19+
20+ from attr ._make import _TupleProxy
1621
1722
1823try :
@@ -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 )
765769class SphinxDocTest :
766770 """Test that slotted cached_property shows up in Sphinx docs"""
You can’t perform that action at this time.
0 commit comments