public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-fastavro] rawhide: Simplify testing
@ 2026-08-23 9:57 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-23 9:57 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-fastavro
Branch : rawhide
Commit : b79a84af3322dc41ef9d82f3685a245d9cadd7ac
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-23T08:34:15+01:00
Stats : +1/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-fastavro/c/b79a84af3322dc41ef9d82f3685a245d9cadd7ac?branch=rawhide
Log:
Simplify testing
[skip changelog]
---
diff --git a/python-fastavro.spec b/python-fastavro.spec
index 5f544dd..ec32cbe 100644
--- a/python-fastavro.spec
+++ b/python-fastavro.spec
@@ -136,23 +136,13 @@ install -D --target='%{buildroot}%{_mandir}/man1' \
%check
-# Avoid importing the “un-built” package. The tests really assume we have built
-# the extensions in-place, and occasionally use relative paths to the package
-# source directory. We would prefer to test the extensions as installed (and
-# avoid an extra build step), so we use a symbolic link to make the tests
-# appear alongside the built package.
-mkdir -p _empty
-cd _empty
-cp -rp ../tests/ .
-ln -s '%{buildroot}%{python3_sitearch}/fastavro' .
-
# These fail because there are no source lines in the tracebacks from Cython
# modules, even though this works in the upstream CI. We haven’t figured out
# the root cause, but it doesn’t seem to represent a real problem.
k="${k-}${k+ and }not test_regular_vs_ordered_dict_map_typeerror"
k="${k-}${k+ and }not test_regular_vs_ordered_dict_record_typeerror"
-%pytest -k "${k-}"
+%pytest --import-mode=append -k "${k-}"
%files -n python3-fastavro -f %{pyproject_files}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-23 9:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-23 9:57 [rpms/python-fastavro] rawhide: Simplify testing Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox