Recently I want to make a debian package of a scientific computing
library. I try to use
pybuild in my debian/rules. I found some tests failed because the test
code downloads some data from the internet when the test code is
running for the first time. I want to omit these tests. However, the
test uses Python built-in unittests I do not find any switch to omit a
small number of tests (it seems only supporting selecting which tests
to include). The document in pybuild mentions that it is possible for
`pytest` framework
(https://wiki.debian.org/Python/Pybuild#debian.2Fcontrol).
Since pybuild wraps the command line switch of these frameworks. I
think it is hard to find solution on pybuild level if unittests do not
support it. As far as I can figure out, I can inject some decorator to
the test code to omit these test functions, I do not know whether it
is acceptable to make such "patch" in debian. I wonder if there were
any way to deal with this kind of problems.

Some additional informations:
https://salsa.debian.org/zhaofeng-shu33-guest/ete is the source code
repo.

Thanks

Reply via email to