You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def check_items_equality(first, second):
"""A simplified version of the unittest.assertEqual method."""
first_seq, second_seq = list(first), list(second)
first = collections.Counter(first_seq)
second = collections.Counter(second_seq)
assert first == second
E AssertionError: assert Counter({'c...variable': 1}) == Counter({'bas...eakref': 1})
E
E Omitting 9 identical items, use -vv to show
E Left contains 2 more items:
E {'firstlineno': 1, 'static_attributes': 1}
E Use -v to get more diff
[p.name for p in pdir(inst).own.pattrs],
[
'derived_method',
'__init__',
'base_instance_variable',
'derived_class_variable',
'derived_instance_variable',
'__doc__',
'__module__',
],
)
def check_items_equality(first, second):
"""A simplified version of the unittest.assertEqual method."""
first_seq, second_seq = list(first), list(second)
first = collections.Counter(first_seq)
second = collections.Counter(second_seq)
assert first == second
E AssertionError: assert Counter({'d...d_method': 1}) == Counter({'der...module': 1})
E
E Omitting 7 identical items, use -vv to show
E Left contains 2 more items:
E {'firstlineno': 1, 'static_attributes': 1}
E Use -v to get more diff
E AssertionError: assert '\x1b[0;33mpr...eleter\x1b[0m' == '\x1b[0;33msp...eleter\x1b[0m'
E
E + property:
E + firstlineno, static_attributes
E special attribute:
E class, doc, module, slots
E abstract class:
E subclasshook...
E
E ...Full output truncated (15 lines hidden), use '-vv' to show
E AssertionError: assert '\x1b[0;33mpr...attr__\x1b[0m' == '\x1b[0;33mat...attr__\x1b[0m'
E
E + property:
E + static_attributes
E attribute access:
E delattr, getattribute, setattr
Hi, please add support for the upcoming Python 3.13 version.
Thanks!
Python 3.13.0rc1
============================= test session starts ==============================
platform linux -- Python 3.13.0rc1, pytest-8.3.1, pluggy-1.5.0
rootdir: /builddir/build/BUILD/python-pdir2-1.1.0-build/pdir2-1.1.0
configfile: pyproject.toml
plugins: hypothesis-6.104.2, xdist-3.6.1, cov-4.0.0, timeout-2.3.1
collected 46 items
tests/test_buggy_attrs.py s..... [ 13%]
tests/test_container.py ... [ 19%]
tests/test_disbale_color.py . [ 21%]
tests/test_filters.py F..F... [ 36%]
tests/test_pdir_format.py ....F....... [ 63%]
tests/test_search.py .F [ 67%]
tests/test_slots.py ... [ 73%]
tests/test_user_config.py ............ [100%]
=================================== FAILURES ===================================
_______________________________ test_properties ________________________________
tests/test_filters.py:44:
first = Counter({'class': 1, 'dict': 1, 'doc': 1, 'firstlineno': 1, 'module': 1, 'static_attributes': ...1, 'base_class_variable': 1, 'base_instance_variable': 1, 'derived_class_variable': 1, 'derived_instance_variable': 1})
second = Counter({'base_class_variable': 1, 'base_instance_variable': 1, 'derived_class_variable': 1, 'derived_instance_variable': 1, 'class': 1, 'dict': 1, 'doc': 1, 'module': 1, 'weakref': 1})
E AssertionError: assert Counter({'c...variable': 1}) == Counter({'bas...eakref': 1})
E
E Omitting 9 identical items, use -vv to show
E Left contains 2 more items:
E {'firstlineno': 1, 'static_attributes': 1}
E Use -v to get more diff
tests/test_filters.py:16: AssertionError
___________________________________ test_own ___________________________________
tests/test_filters.py:108:
first = Counter({'doc': 1, 'firstlineno': 1, 'init': 1, 'module': 1, 'static_attributes': 1, 'base_instance_variable': 1, 'derived_class_variable': 1, 'derived_instance_variable': 1, 'derived_method': 1})
second = Counter({'derived_method': 1, 'init': 1, 'base_instance_variable': 1, 'derived_class_variable': 1, 'derived_instance_variable': 1, 'doc': 1, 'module': 1})
E AssertionError: assert Counter({'d...d_method': 1}) == Counter({'der...module': 1})
E
E Omitting 7 identical items, use -vv to show
E Left contains 2 more items:
E {'firstlineno': 1, 'static_attributes': 1}
E Use -v to get more diff
tests/test_filters.py:16: AssertionError
__________________________________ test_slots __________________________________
fake_tty = None
E AssertionError: assert '\x1b[0;33mpr...eleter\x1b[0m' == '\x1b[0;33msp...eleter\x1b[0m'
E
E + property:
E + firstlineno, static_attributes
E special attribute:
E class, doc, module, slots
E abstract class:
E subclasshook...
E
E ...Full output truncated (15 lines hidden), use '-vv' to show
tests/test_pdir_format.py:176: AssertionError
__________________________ test_search_with_argument ___________________________
fake_tty = None
E AssertionError: assert '\x1b[0;33mpr...attr__\x1b[0m' == '\x1b[0;33mat...attr__\x1b[0m'
E
E + property:
E + static_attributes
E attribute access:
E delattr, getattribute, setattr
tests/test_search.py:40: AssertionError
=========================== short test summary info ============================
FAILED tests/test_filters.py::test_properties - AssertionError: assert Counte...
FAILED tests/test_filters.py::test_own - AssertionError: assert Counter({'__d...
FAILED tests/test_pdir_format.py::test_slots - AssertionError: assert '\x1b[0...
FAILED tests/test_search.py::test_search_with_argument - AssertionError: asse...
=================== 4 failed, 41 passed, 1 skipped in 1.31s ====================
The text was updated successfully, but these errors were encountered: