Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pcapkit/toolkit/pyshark.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
108: Enum_LinkType.MOST, # most
109: Enum_LinkType.CAN20B, # can20b
111: Enum_LinkType.X2E_SERIAL, # x2e-serial
112: Enum_LinkType.IPMB_LINUX, # i2c-linux
112: Enum_LinkType.I2C_LINUX, # i2c-linux
113: Enum_LinkType.IEEE802_15_4_NONASK_PHY, # wpan-nonask-phy
115: Enum_LinkType.USB_LINUX_MMAPPED, # usb-linux-mmap
121: Enum_LinkType.FC_2, # fc2
Expand Down
11 changes: 11 additions & 0 deletions tests/_dependency_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@
'asks whether /proc/self/fd is a directory, i.e. whether this kernel '
'exposes the procfs file-descriptor listing -- nothing pip installs'
),
# tests/project/test_pyshark_encap_map.py (#851/#853). Asks whether the
# tshark/editcap binaries are on PATH -- a Wireshark install, not a Python
# distribution any pyproject.toml extra could ever provide. Declared here
# rather than left as an unprefixed shutil.which check: the latter was
# tried first and made the AST scan blind to two classes skipping on every
# CI leg, which is the opposite of what "no unaccounted HAS_* gate" was
# meant to prevent.
'HAS_WIRESHARK': (
'asks whether the tshark/editcap binaries are on PATH -- a Wireshark '
'install, not a Python distribution any extra could provide'
),
}

#: Top-level import names two (or more) genuinely *mutually exclusive*
Expand Down
Loading
Loading