Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8845
| Path | csiph.com!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | u <u@451f.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | dh_auto_test versus nosetests3 |
| Date | Tue, 06 Sep 2016 16:30:01 +0200 |
| Message-ID | <sepxT-3ab-13@gated-at.bofh.it> (permalink) |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Tue Sep 6 14:21:09 2016 |
| Old-Return-Path | <u@451f.org> |
| X-Amavis-Spam-Status | No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -6.1 |
| X-Greylist | delayed 578 seconds by postgrey-1.35 at bendel; Tue, 06 Sep 2016 14:04:39 UTC |
| X-Enigmail-Draft-Status | N1110 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/14183 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/fac7637e-8b62-84da-f66d-cd4d4f12f4e4@451f.org |
| Approved | robomod@news.nic.it |
| Lines | 79 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Tue, 06 Sep 2016 13:54:00 +0000 |
| X-Original-Message-ID | <fac7637e-8b62-84da-f66d-cd4d4f12f4e4@451f.org> |
| Xref | csiph.com linux.debian.maint.python:8845 |
Show key headers only | View raw
Hi!
I have a package where upstream provides tests.
These tests, when run with nosetests3, work correctly.
Currently, I build the package using (debian/rules):
%:
dh $@ --with python3 --buildsystem=pybuild
But some of the tests fail this way (see log below, for better readability).
Now, when I override dh_auto_test in debian/rules like so:
override_dh_auto_test:
nosetests3 --verbose --exe -w $(CURDIR)
The tests get executed without error but I have no real feedback about
their well-being (except when I check the build log) and obviously I get
a complaint that the package does not use tests anymore.
So what's best practice / recommendation here or what did I miss?
Thanks & cheers!
u.
Output build log (using pbuilder in a sid chroot):
--------------------------------------------------
I: pybuild base:184: cd
/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build; python3.5 -m nose test
..EE..
======================================================================
ERROR: load_strings() loads English by default
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File
"/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build/test/onionshare_strings_test.py",
line 33, in test_load_strings_defaults_to_english
strings.load_strings()
File
"/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build/onionshare/strings.py",
line 40, in load_strings
for filename in os.listdir(locale_dir):
FileNotFoundError: [Errno 2] No such file or directory:
'/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build/resources/locale'
======================================================================
ERROR: load_strings() loads other languages in different locales
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File
"/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build/test/onionshare_strings_test.py",
line 40, in test_load_strings_loads_other_languages
strings.load_strings("fr")
File
"/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build/onionshare/strings.py",
line 40, in load_strings
for filename in os.listdir(locale_dir):
FileNotFoundError: [Errno 2] No such file or directory:
'/build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build/resources/locale'
----------------------------------------------------------------------
Ran 6 tests in 0.130s
FAILED (errors=2)
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1:
cd /build/onionshare-0.9/.pybuild/pythonX.Y_3.5/build; python3.5 -m nose
test
dh_auto_test: pybuild --test --test-nose -i python{version} -p 3.5
returned exit code 13
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
dh_auto_test versus nosetests3 u <u@451f.org> - 2016-09-06 16:30 +0200 Re: dh_auto_test versus nosetests3 Piotr Ożarowski <piotr@debian.org> - 2016-09-06 16:40 +0200
csiph-web