Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions tests/protocols/internet/test_mh_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1657,24 +1657,11 @@ def test_mh_get_default_works_uniformly_through_the_inherited_method(self) -> No
call. This test fails with the ``TypeError`` above against the tree at
382375811, before either ruling landed.
"""
import sys

from pcapkit.protocols.internet.mh import (FastBindingAcknowledgmentStatus,
IPv6AddressPrefixCode, LMAAddressCode,
LocalizedRoutingStatus)
from pcapkit.utilities.exceptions import EnumKeyError, EnumValueError

def _drop_tracebacklimit() -> None:
# The int-value-miss subTests below reach ``_missing_`` on
# ``key`` itself, whose error is quiet inside ``get``'s
# ``_CaughtByCaller`` block (#1845), and no pcapkit error sets
# this (#362). Restored anyway, so a later test in the
# same run cannot read truncated tracebacks because of this one.
if hasattr(sys, 'tracebacklimit'):
del sys.tracebacklimit

self.addCleanup(_drop_tracebacklimit)

classes = (FastBindingAcknowledgmentStatus, IPv6AddressPrefixCode,
LMAAddressCode, LocalizedRoutingStatus)

Expand Down
Loading