py-test and deprecations

0 views
Skip to first unread message

Greg Troxel

unread,
Jun 24, 2026, 11:46:06 AM (yesterday) Jun 24
to bup-...@googlegroups.com
testing, I see

File "/usr/pkg/lib/python3.13/site-packages/_pytest/mark/structures.py", line 491, in store_mark
fail(
~~~~^
"Marks cannot be applied to fixtures.\n"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^

after a long backtrace. I saw this in some other project too.

I have py-test-9.1.1, up from 9.0.3. This is perhaps why.

I am curious what happens to thers with py-test-9.1

Rob Browning

unread,
Jun 24, 2026, 12:18:30 PM (yesterday) Jun 24
to Greg Troxel, bup-...@googlegroups.com
Greg Troxel <g...@lexort.com> writes:

> after a long backtrace. I saw this in some other project too.

Does the backtrace show any of our code? i.e. is it referring to any of
the four (I think) @pytest.mark uses in main?

Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Greg Troxel

unread,
Jun 24, 2026, 1:39:53 PM (yesterday) Jun 24
to bup-...@googlegroups.com
Rob Browning <r...@defaultvalue.org> writes:

> Does the backtrace show any of our code? i.e. is it referring to any of
> the four (I think) @pytest.mark uses in main?

maybe this is a libtmux bug?



mkdir test/tmp
# Ensure we can't test the local bup
! bup version
error: something ran "bup"; bup imposter intentionally failing
test "$(command -v bup)" = '/home/gdt/SOFTWARE/BUP/bup/dev/shadow-bin/bup'
./bup features
bup 0.34~76ac1986b9297b126fe4b8368c36414002e3f831
Source 76ac1986b9297b126fe4b8368c36414002e3f831 2026-06-22 18:37:22 -0500
Python: 3.13.14
Command line editing (e.g. bup ftp): yes
Saving and restoring POSIX ACLs: no
Saving and restoring extended attributes (xattrs): no
./pytest -n8
pytest -v -m 'not release'
Traceback (most recent call last):
File "/home/gdt/SOFTWARE/BUP/bup/./pytest", line 45, in <module>
sys.exit(pytest.main(args=argv))
~~~~~~~~~~~^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in main
return _main(args=args, plugins=plugins, prog="pytest.main()")
File "/usr/pkg/lib/python3.13/site-packages/_pytest/config/__init__.py", line 223, in _main
config = _prepareconfig(new_args, plugins, prog=prog)
File "/usr/pkg/lib/python3.13/site-packages/_pytest/config/__init__.py", line 410, in _prepareconfig
config: Config = pluginmanager.hook.pytest_cmdline_parse(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
pluginmanager=pluginmanager, args=args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/pkg/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File "/usr/pkg/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/_pytest/helpconfig.py", line 124, in pytest_cmdline_parse
config = yield
^^^^^
File "/usr/pkg/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
File "/usr/pkg/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1232, in pytest_cmdline_parse
self.parse(args)
~~~~~~~~~~^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/_pytest/config/__init__.py", line 1583, in parse
self.pluginmanager.load_setuptools_entrypoints("pytest11")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/pluggy/_manager.py", line 416, in load_setuptools_entrypoints
plugin = ep.load()
File "/usr/pkg/lib/python3.13/importlib/metadata/__init__.py", line 179, in load
module = import_module(match.group('module'))
File "/usr/pkg/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1395, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "/usr/pkg/lib/python3.13/site-packages/_pytest/assertion/rewrite.py", line 188, in exec_module
exec(co, module.__dict__)
~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/libtmux/pytest_plugin.py", line 84, in <module>
@pytest.mark.skipif(USING_ZSH, reason="Using ZSH")
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/_pytest/mark/structures.py", line 415, in __call__
store_mark(unwrapped_func, self.mark)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/pkg/lib/python3.13/site-packages/_pytest/mark/structures.py", line 491, in store_mark
fail(
~~~~^
"Marks cannot be applied to fixtures.\n"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/pkg/lib/python3.13/site-packages/_pytest/outcomes.py", line 162, in __call__
raise Failed(msg=reason, pytrace=pytrace)
Failed: Marks cannot be applied to fixtures.
See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
gmake: *** [GNUmakefile:338: check] Error 1
[<N
Reply all
Reply to author
Forward
0 new messages