Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8372
| From | Piotr Ożarowski <piotr@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: running tests against installed version of package |
| Date | 2016-04-01 00:20 +0200 |
| Message-ID | <riT6y-3a6-19@gated-at.bofh.it> (permalink) |
| References | <rguch-6J2-5@gated-at.bofh.it> <riSNd-2N8-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> > By default pybuild runs tests I think using the source tree. pybuild tells build system to build .py/.so files in temporary directory (with a _stable_ name), copies tests dir there as well, changes current directory to that dir (so that sys.path[0] doesn't point to sources), runs tests and removes them (so that install target doesn't pick them up) > In most cases, Pybuild isn't very helpful for running tests and fails in > the most common traps (like the one I'm solving for you below), which is > why I don't really think it's useful at all. YMMV... file bugs please. Works fine for me. > > However I have a package where the tests require the entry points from > > setup.py to be configured, the tests fail without this. > > Most of the time, you get by this doing: > PYTHONPATH=$(CURDIR) python -m pytest tests this will test python2.7 only and will most probably ignore extensions, etc. -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
running tests against installed version of package Brian May <brian@linuxpenguins.xyz> - 2016-03-25 08:20 +0100
Re: running tests against installed version of package Ben Finney <ben+debian@benfinney.id.au> - 2016-03-25 11:50 +0100
Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-03-26 03:50 +0100
Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-03-26 04:10 +0100
Re: running tests against installed version of package Ben Finney <ben+debian@benfinney.id.au> - 2016-03-26 04:20 +0100
Re: running tests against installed version of package Ben Finney <ben+debian@benfinney.id.au> - 2016-03-26 04:10 +0100
Re: running tests against installed version of package Barry Warsaw <barry@debian.org> - 2016-03-25 23:20 +0100
Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-03-26 04:00 +0100
Re: running tests against installed version of package Barry Warsaw <barry@debian.org> - 2016-03-31 19:00 +0200
Re: running tests against installed version of package Brian May <brian@linuxpenguins.xyz> - 2016-03-27 07:20 +0200
egg-info executable files Brian May <bam@debian.org> - 2016-03-27 07:30 +0200
Re: egg-info executable files Ben Finney <ben+debian@benfinney.id.au> - 2016-03-27 08:50 +0200
Re: running tests against installed version of package Thomas Goirand <zigo@debian.org> - 2016-04-01 00:00 +0200
Re: running tests against installed version of package Piotr Ożarowski <piotr@debian.org> - 2016-04-01 00:20 +0200
Re: running tests against installed version of package Thomas Goirand <zigo@debian.org> - 2016-04-02 14:00 +0200
Re: running tests against installed version of package Piotr Ożarowski <piotr@debian.org> - 2016-04-02 23:00 +0200
Re: running tests against installed version of package Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-02 10:10 +0200
Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-04-03 03:40 +0200
Re: running tests against installed version of package Tiago Ilieve <tiago.myhro@gmail.com> - 2016-04-03 04:50 +0200
Re: running tests against installed version of package Brian May <bam@debian.org> - 2016-04-03 05:00 +0200
Re: running tests against installed version of package Thomas Goirand <zigo@debian.org> - 2016-04-06 00:30 +0200
Re: running tests against installed version of package Piotr Ożarowski <piotr@debian.org> - 2016-04-06 11:00 +0200
csiph-web