wireshark/test/suite_dfilter
Gerald Combs 30c392f166 Tools+test: Call python3 explicitly.
PEP 394[1] says,

"In cases where the script is expected to be executed outside virtual
 environments, developers will need to be aware of the following
 discrepancies across platforms and installation methods:

  * Older Linux distributions will provide a python command that refers
    to Python 2, and will likely not provide a python2 command.

  * Some newer Linux distributions will provide a python command that
    refers to Python 3.

  * Some Linux distributions will not provide a python command at all by
    default, but will provide a python3 command by default."

Debian has forced the issue by choosing the third option[2]:

"NOTE: Debian testing (bullseye) has removed the "python" package and
 the '/usr/bin/python' symlink due to the deprecation of Python 2."

Switch our shebang from "#!/usr/bin/env python" to "#!/usr/bin/env
python3" in some places. Remove some 2/3 version checks if we know we're
running under Python 3. Remove the "coding: utf-8" in a bunch of places
since that's the default in Python 3.

[1]https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers
[2]https://wiki.debian.org/Python
2020-11-05 06:46:35 +00:00
..
__init__.py
dfiltertest.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_bytes_ether.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_bytes_ipv6.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_bytes_type.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_dfunction_string.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_double.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_integer.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_integer_1byte.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_ipv4.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_membership.py dfilter: fix memory leaks on dfilter compile errors involving a set 2019-01-28 11:09:35 +00:00
group_range_method.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_scanner.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_string_type.py Tools+test: Call python3 explicitly. 2020-11-05 06:46:35 +00:00
group_stringz.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_time_relative.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_time_type.py test/dfilter: be explicit with the expected error message 2019-01-24 18:24:00 +00:00
group_tvb.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00
group_uint64.py test: convert suite_dfilter to use fixtures 2018-11-15 22:57:40 +00:00