-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.17.3: pytest warnings #228
Comments
Yes, the naming of some of the dummy/test classes clash with the naming convention for pytest. I'll update them. Thanks for reporting it. |
Please let me know if you will have patch for that. |
Just tested that patch and I see that with or without that patch I have now some erros. However in myentime I had several changes (mostly upgrades) in my python modules. FYI I'm usimg exact testing methodology which I'm using on package all python modules into rpm packeges:
Here is the log: + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=1986644132
rootdir: /home/tkloczko/rpmbuild/BUILD/pyrsistent-0.17.3, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, randomly-3.8.0, Faker-8.8.2, datadir-1.3.1, regressions-2.2.0
collected 625 items
tests/checked_map_test.py .................. [ 2%]
tests/freeze_test.py ................ [ 5%]
tests/deque_test.py ........................................ [ 11%]
tests/hypothesis_vector_test.py ... [ 12%]
tests/list_test.py ...................................... [ 18%]
tests/class_test.py ............................................. [ 25%]
tests/regression_test.py . [ 25%]
tests/checked_vector_test.py ........................ [ 29%]
tests/vector_test.py ............................................................................................................................................... [ 52%]
................................................s............ [ 62%]
tests/checked_set_test.py ......F..... [ 64%]
tests/map_test.py ............................................... [ 71%]
tests/bag_test.py ............................. [ 76%]
. . [ 76%]
tests/bag_test.py ...... [ 77%]
tests/field_test.py F. [ 77%]
tests/immutable_object_test.py ....... [ 79%]
tests/toolz_test.py . [ 79%]
tests/record_test.py .F...F.F..F..FF.............F.F...........F.F...FF........F....F.......F.......F.FFF... [ 93%]
tests/set_test.py ........................ [ 96%]
tests/transform_test.py ................... [100%]
================================================================================= FAILURES =================================================================================
______________________________________________________________________ test_multi_level_serialization ______________________________________________________________________
def test_multi_level_serialization():
> x = NaturalsVector.create([[1, 2], [3, 4]])
tests/checked_set_test.py:60:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:265: in _checked_type_create
return cls([checked_type.create(data, ignore_extra=ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_______________________________________________________________________ test_pvector_field_enum_type _______________________________________________________________________
def test_pvector_field_enum_type():
> f = pvector_field(ExampleEnum)
tests/field_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
____________________________________________________________ test_supports_pickling_with_typed_container_fields ____________________________________________________________
def test_supports_pickling_with_typed_container_fields():
> obj = RecordContainingContainers(
map={'foo': 'bar'}, set=['hello', 'there'], vec=['a', 'b'])
tests/record_test.py:314:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:51: in __new__
e[k] = v
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:120: in __setitem__
self.set(key, original_value)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:130: in set
value = field.factory(original_value)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
_______________________________________________________________________ test_pvector_field_mandatory _______________________________________________________________________
def test_pvector_field_mandatory():
"""
``pvector_field`` is a mandatory field.
"""
> class Record(PRecord):
tests/record_test.py:602:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:603: in Record
value = pvector_field(int)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
___________________________________________________________________ test_pvector_field_name_string_type ____________________________________________________________________
def test_pvector_field_name_string_type():
"""
The created set class name is based on the type of items in the set
specified by name.
"""
> class Record(PRecord):
tests/record_test.py:665:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:666: in Record
value = pvector_field("record_test.Something")
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_____________________________________________________________ test_create_ignore_extra_true_sequence_hierarchy _____________________________________________________________
def test_create_ignore_extra_true_sequence_hierarchy():
> h = Hierarchy.create(
{'point1': {'x': 1, 'y': 'foo', 'extra_field_0': 'extra_data_0'},
'point2': {'x': 1, 'y': 'foo', 'extra_field_1': 'extra_data_1'},
'points': [{'x': 1, 'y': 'foo', 'extra_field_2': 'extra_data_2'},
{'x': 1, 'y': 'foo', 'extra_field_3': 'extra_data_3'}],
'extra_field____': 'extra_data_2',
}, ignore_extra=True
)
tests/record_test.py:49:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:94: in create
return cls(_factory_fields=_factory_fields, _ignore_extra=ignore_extra, **kwargs)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:51: in __new__
e[k] = v
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:120: in __setitem__
self.set(key, original_value)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:128: in set
value = field.factory(original_value, ignore_extra=self._ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:265: in _checked_type_create
return cls([checked_type.create(data, ignore_extra=ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_______________________________________________________________________ test_pvector_field_optional ________________________________________________________________________
def test_pvector_field_optional():
"""
If ``optional`` argument is true, ``None`` is acceptable alternative
to a sequence.
"""
> class Record(PRecord):
tests/record_test.py:633:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:634: in Record
value = pvector_field(int, optional=True)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:231: in factory
return TheType.create(argument, _factory_fields=_factory_fields, ignore_extra=ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
_________________________________________________________________________ test_pvector_field_type __________________________________________________________________________
def test_pvector_field_type():
"""
``pvector_field`` enforces its type.
"""
> class Record(PRecord):
tests/record_test.py:592:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:593: in Record
value = pvector_field(int)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
__________________________________________________________ test_pvector_field_create_from_nested_serialized_data ___________________________________________________________
def test_pvector_field_create_from_nested_serialized_data():
class Foo(PRecord):
foo = field(type=str)
> class Bar(PRecord):
tests/record_test.py:683:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:684: in Bar
bar = pvector_field(Foo)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:265: in _checked_type_create
return cls([checked_type.create(data, ignore_extra=ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
____________________________________________________________________ test_pvector_field_custom_initial _____________________________________________________________________
def test_pvector_field_custom_initial():
"""
A custom initial value can be passed in.
"""
> class Record(PRecord):
tests/record_test.py:555:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:556: in Record
value = pvector_field(int, initial=(1, 2))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
_________________________________________________________________ test_pvector_field_default_non_optional __________________________________________________________________
def test_pvector_field_default_non_optional():
"""
By default ``pvector_field`` is non-optional, i.e. does not allow
``None``.
"""
> class Record(PRecord):
tests/record_test.py:613:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:614: in Record
value = pvector_field(int)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_______________________________________________________________________ test_nested_create_serialize _______________________________________________________________________
def test_nested_create_serialize():
> node = Node(applications=[Application(name='myapp', image='myimage'),
Application(name='b', image='c')])
tests/record_test.py:393:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:51: in __new__
e[k] = v
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:120: in __setitem__
self.set(key, original_value)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_precord.py:130: in set
value = field.factory(original_value)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:265: in _checked_type_create
return cls([checked_type.create(data, ignore_extra=ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
_____________________________________________________________ test_pvector_field_checked_vector_multiple_types _____________________________________________________________
def test_pvector_field_checked_vector_multiple_types():
"""
``pvector_field`` results in a vector that enforces its types.
"""
> class Record(PRecord):
tests/record_test.py:582:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:583: in Record
value = pvector_field((int, str))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_________________________________________________________________________ test_pvector_field_name __________________________________________________________________________
def test_pvector_field_name():
"""
The created set class name is based on the type of items in the set.
"""
> class Record(PRecord):
tests/record_test.py:642:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:643: in Record
value = pvector_field(Something)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
____________________________________________________________________ test_pvector_field_checked_vector _____________________________________________________________________
def test_pvector_field_checked_vector():
"""
``pvector_field`` results in a vector that enforces its type.
"""
> class Record(PRecord):
tests/record_test.py:572:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:573: in Record
value = pvector_field(int)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
______________________________________________________________ test_pvector_multiple_string_types_field_name _______________________________________________________________
def test_pvector_multiple_string_types_field_name():
"""
The created vector class name is based on the multiple given types of
items in the vector.
"""
> class Record(PRecord):
tests/record_test.py:674:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:675: in Record
value = pvector_field(("record_test.Something", "record_test.Another"))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_____________________________________________________________________ test_pvector_field_initial_value _____________________________________________________________________
def test_pvector_field_initial_value():
"""
``pvector_field`` results in initial value that is empty.
"""
> class Record(PRecord):
tests/record_test.py:547:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:548: in Record
value = pvector_field(int)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
__________________________________________________________________ test_pvector_multiple_types_field_name __________________________________________________________________
def test_pvector_multiple_types_field_name():
"""
The created vector class name is based on the multiple given types of
items in the vector.
"""
> class Record(PRecord):
tests/record_test.py:654:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:655: in Record
value = pvector_field((Something, int))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
________________________________________________________________________ test_pvector_field_factory ________________________________________________________________________
def test_pvector_field_factory():
"""
``pvector_field`` has a factory that creates a ``PVector``.
"""
> class Record(PRecord):
tests/record_test.py:563:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:564: in Record
value = pvector_field(int)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_________________________________________________________________ test_pvector_field_explicit_non_optional _________________________________________________________________
def test_pvector_field_explicit_non_optional():
"""
If ``optional`` argument is ``False`` then ``pvector_field`` is
non-optional, i.e. does not allow ``None``.
"""
> class Record(PRecord):
tests/record_test.py:623:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:624: in Record
value = pvector_field(int, optional=False)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
___________________________________________________________________ test_ignore_extra_for_pvector_field ____________________________________________________________________
def test_ignore_extra_for_pvector_field():
> class HierarchyA(PRecord):
tests/record_test.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/record_test.py:62: in HierarchyA
points = pvector_field(ARecord, optional=False)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:268: in pvector_field
return _sequence_field(CheckedPVector, item_type, optional,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_field_common.py:237: in _sequence_field
initial=factory(initial))
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:265: in _checked_type_create
return cls([checked_type.create(data, ignore_extra=ignore_extra)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/vector_test.py:911: This test only applies to pvectorc
FAILED tests/checked_set_test.py::test_multi_level_serialization - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/field_test.py::test_pvector_field_enum_type - RecursionError: maximum recursion depth exceeded
FAILED tests/record_test.py::test_supports_pickling_with_typed_container_fields - RecursionError: maximum recursion depth exceeded
FAILED tests/record_test.py::test_pvector_field_mandatory - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_name_string_type - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_create_ignore_extra_true_sequence_hierarchy - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_optional - RecursionError: maximum recursion depth exceeded
FAILED tests/record_test.py::test_pvector_field_type - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_create_from_nested_serialized_data - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_custom_initial - RecursionError: maximum recursion depth exceeded
FAILED tests/record_test.py::test_pvector_field_default_non_optional - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_nested_create_serialize - RecursionError: maximum recursion depth exceeded
FAILED tests/record_test.py::test_pvector_field_checked_vector_multiple_types - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_name - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_checked_vector - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_multiple_string_types_field_name - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_initial_value - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_multiple_types_field_name - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_factory - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_pvector_field_explicit_non_optional - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/record_test.py::test_ignore_extra_for_pvector_field - RecursionError: maximum recursion depth exceeded while calling a Python object
================================================================ 21 failed, 602 passed, 1 skipped in 21.31s ================================================================ without e3df30b it is more errors .. ========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/vector_test.py:911: This test only applies to pvectorc
FAILED tests/checked_map_test.py::test_type_creation_with_string_specification - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_map_test.py::test_type_check_with_string_specification - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_map_test.py::test_create_checked_types - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_vector_test.py::test_create_base_case - RecursionError: maximum recursion depth exceeded in comparison
FAILED tests/checked_vector_test.py::test_serialize_custom_serializer - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_vector_test.py::test_set - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_pickling - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_create_with_generator_iterator - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_vector_test.py::test_extend - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_create_of_nested_structure - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_supports_weakref - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_repr - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_breaking_invariant - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_create_with_string_specification - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_multiple_allowed_types - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_check_with_string_specification - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_evolver_returns_same_instance_when_no_updates - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_invalid_type - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_multiple_optional_types - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_vector_test.py::test_append - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_type_information_is_inherited - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_vector_test.py::test_instantiate - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_create_with_instance_of_checked_pvector_returns_the_argument - RecursionError: maximum recursion depth exceeded
FAILED tests/checked_vector_test.py::test_serialize_default_case - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_set_test.py::test_multi_level_serialization - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/field_test.py::test_pvector_field_enum_type - RecursionError: maximum recursion depth exceeded
FAILED tests/class_test.py::test_string_as_type_specifier - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/class_test.py::test_supports_pickling_with_typed_container_fields - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/class_test.py::test_value_can_be_overridden_in_subclass_new - RecursionError: maximum recursion depth exceeded while calling a Python object
========================================================== 29 failed, 594 passed, 1 skipped, 2 warnings in 22.22s ========================================================== |
Looks like part of those test are failing because I'm using pytest randomiser ( + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra -k ' not test_append and not test_breaking_invariant and not test_check_with_string_specification and not test_create_base_case and not test_create_of_nested_structure and not test_create_with_generator_iterator and not test_create_with_instance_of_checked_pvector_returns_the_argument and not test_create_with_string_specification and not test_evolver_returns_same_instance_when_no_updates and not test_extend and not test_instantiate and not test_invalid_type and not test_multiple_allowed_types and not test_multiple_optional_types and not test_pickling and not test_pvector_field_enum_type and not test_repr and not test_serialize_custom_serializer and not test_serialize_default_case and not test_set and not test_string_as_type_specifier and not test_supports_pickling_with_typed_container_fields and not test_supports_weakref and not test_type_information_is_inherited and not test_value_can_be_overridden_in_subclass_new'
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=1655990926
rootdir: /home/tkloczko/rpmbuild/BUILD/pyrsistent-0.17.3, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, randomly-3.8.0, Faker-8.8.2, datadir-1.3.1, regressions-2.2.0
collected 625 items / 94 deselected / 531 selected
tests/record_test.py .................................................................................. [ 15%]
tests/freeze_test.py ................ [ 18%]
tests/map_test.py ........................................... [ 26%]
tests/class_test.py ..................................... [ 33%]
tests/toolz_test.py . [ 33%]
tests/checked_vector_test.py ... [ 34%]
tests/list_test.py ................................. [ 40%]
tests/hypothesis_vector_test.py .. [ 40%]
tests/bag_test.py ....... [ 42%]
. . [ 42%]
tests/bag_test.py ......................... [ 47%]
tests/immutable_object_test.py ...... [ 48%]
tests/checked_set_test.py ..... [ 49%]
tests/transform_test.py ................... [ 52%]
tests/field_test.py . [ 53%]
tests/deque_test.py ............................. [ 58%]
tests/regression_test.py . [ 58%]
tests/vector_test.py .............................................................................................................................................s. [ 85%]
............................................. [ 94%]
tests/set_test.py ..................... [ 98%]
tests/checked_map_test.py ..F....FF. [100%]
================================================================================= FAILURES =================================================================================
________________________________________________________________________ test_create_checked_types _________________________________________________________________________
def test_create_checked_types():
class IntSet(CheckedPSet):
__type__ = int
class FloatVector(CheckedPVector):
__type__ = float
class IntSetToFloatVectorMap(CheckedPMap):
__key_type__ = IntSet
__value_type__ = FloatVector
> x = IntSetToFloatVectorMap.create({frozenset([1, 2]): [1.25, 2.5]})
tests/checked_map_test.py:99:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:505: in create
return cls(dict((checked_key_type.create(key) if checked_key_type and not any(isinstance(key, t) for t in key_types) else key,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:506: in <genexpr>
checked_value_type.create(value) if checked_value_type and not any(isinstance(value, t) for t in value_types) else value)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
________________________________________________________________ test_type_check_with_string_specification _________________________________________________________________
def test_type_check_with_string_specification():
content = [1.5, 2.0]
> vec = FloatVector(content)
tests/checked_map_test.py:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
_______________________________________________________________ test_type_creation_with_string_specification _______________________________________________________________
def test_type_creation_with_string_specification():
content = (1.5, 2.0)
> map = VectorToSetMap.create({content: content})
tests/checked_map_test.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:505: in create
return cls(dict((checked_key_type.create(key) if checked_key_type and not any(isinstance(key, t) for t in key_types) else key,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:505: in <genexpr>
return cls(dict((checked_key_type.create(key) if checked_key_type and not any(isinstance(key, t) for t in key_types) else key,
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:269: in _checked_type_create
return cls(source_data)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:343: in persistent
result = self._destination_class(pv)
../../BUILDROOT/python-pyrsistent-0.17.3-9.1.fc35.x86_64/usr/lib64/python3.8/site-packages/pyrsistent/_checked_types.py:289: in __new__
return CheckedPVector.Evolver(cls, python_pvector()).extend(initial).persistent()
E RecursionError: maximum recursion depth exceeded while calling a Python object
!!! Recursion detected (same locals & position)
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/vector_test.py:911: This test only applies to pvectorc
FAILED tests/checked_map_test.py::test_create_checked_types - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_map_test.py::test_type_check_with_string_specification - RecursionError: maximum recursion depth exceeded while calling a Python object
FAILED tests/checked_map_test.py::test_type_creation_with_string_specification - RecursionError: maximum recursion depth exceeded while calling a Python object
========================================================= 3 failed, 526 passed, 1 skipped, 94 deselected in 21.79s ========================================================= 3rd time with the same deselected unit list was sucessful. |
Just removed + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.18.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.18.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/pyrsistent-0.18.0, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, Faker-8.8.2, datadir-1.3.1, regressions-2.2.0
collected 636 items
. . [ 0%]
tests/bag_test.py ................................... [ 5%]
tests/checked_map_test.py .................. [ 8%]
tests/checked_set_test.py ............ [ 10%]
tests/checked_vector_test.py ........................ [ 14%]
tests/class_test.py ............................................. [ 21%]
tests/deque_test.py ........................................ [ 27%]
tests/field_test.py .. [ 27%]
tests/freeze_test.py ........................ [ 31%]
tests/hypothesis_vector_test.py ... [ 32%]
tests/immutable_object_test.py ....... [ 33%]
tests/list_test.py ...................................... [ 39%]
tests/map_test.py ................................................ [ 46%]
tests/record_test.py ....................................................................................... [ 60%]
tests/regression_test.py . [ 60%]
tests/set_test.py ......................... [ 64%]
tests/toolz_test.py . [ 64%]
tests/transform_test.py ................... [ 67%]
tests/vector_test.py ...................................................................................................s........................................... [ 90%]
............................................................. [100%]
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/vector_test.py:911: This test only applies to pvectorc
===================================================================== 633 passed, 1 skipped in 22.29s ====================================================================== |
That last test is with 0.18.0. |
Hmm, that's interesting. I don't see any obvious reasons for the test failures off the top of my head. It may be worthwhile playing around a bit with |
Probably this should help https://pypi.org/project/pytest-find-dependencies/ |
The text was updated successfully, but these errors were encountered: