Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Brian May Newsgroups: linux.debian.maint.python Subject: pytest Date: Thu, 22 Oct 2015 01:00:03 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 21 22:58:19 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, ONEWORD=2, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microcomaustralia.com.au; s=google; h=sender:from:to:subject:organization:user-agent:date:message-id :mime-version:content-type; bh=noJ33Snxlk1r5n8oQzjC7znTfn4CrogqjC6CMKexhTI=; b=DKXl5dagIOdOpWJvtG1a9KN7TEjk4LbUf6hr002TAMBnYmLrAOVVUMjKMKd94szRad kpaygeqLpTFgHtIgeRtBOvfKM9kF8Hr2crh7sEIi2hdwRmNIKAp+giwC39cLsiT06JsY KEPSGT6MIhNMKedeyRKxpWuHtjL3vkYPpqLHU= X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:organization:user-agent :date:message-id:mime-version:content-type; bh=noJ33Snxlk1r5n8oQzjC7znTfn4CrogqjC6CMKexhTI=; b=Sf+6vVEaD8oh1Fif47jXDpnSVQB2AiLrXz32fYsjj8ToP3rM7wSj4vTwyuVIrfykXC mKDsFN7WEKHMObImnGvpisIzX0UC0boG3JyniYsuZOAGlKPk4x/i7Mwv+1CSNik7Wj8O BiAyHXPTJlkAT3WbEjUWPXkNoC+PbW82yPS5AvnfHFnTigiqg+GqdapJqWEbqj1dA9mI K3wX6XC4uVOuSLAOTmyUWxQF8ZUtpJoK8rDxNObypJQMNLq6Fmhv53L6B+P3J/tPo78b ABvyFEdtQZwoO2UqucrT+ui6rnm/nTi02HkzHIhMsTwqfN3UcRCs/7s/lqkgT0diWt+N ke3g== X-Gm-Message-State: ALoCoQlozljaHOjPwa2amAWXdMJk6gxgk5K4E+9CrwkMbeoS/79BiowCMQ8IgRfgYoGH+2ZkONiT X-Received: by 10.68.253.66 with SMTP id zy2mr13193835pbc.50.1445468282312; Wed, 21 Oct 2015 15:58:02 -0700 (PDT) Sender: robomod@news.nic.it Organization: Debian User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Mailing-List: archive/latest/13060 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87zizb96dm.fsf@prune.linuxpenguins.xyz Approved: robomod@news.nic.it Lines: 30 X-Original-Date: Thu, 22 Oct 2015 09:57:57 +1100 X-Original-Message-ID: <87zizb96dm.fsf@prune.linuxpenguins.xyz> X-Original-Sender: Brian May Xref: csiph.com linux.debian.maint.python:7748 Hello, If you look at the djangorestframework git repository, it is failing to build due to tests failing. I incorrectly filed a bug report upstream about this: https://github.com/tomchristie/django-rest-framework/issues/3524 Upstream correctly pointed out that the test class is decorated by the skipif decorator, which should skip the entire test because we have Django 1.7 still in the archive: @pytest.mark.skipif(django.VERSION < (1, 8), reason='DurationField is only available for django1.8+') However this is not working, it is not skipping the test. My latest theory is that running the tests using debian/run_tests.py using django.test.utils.get_runner somehow is incompatable with or breaks pytest.mark.skipif - not really sure I understand. So I thought I could use the upstreams ./runtests.py - this however does not seem to initialize Django properly (it works when called by tox, not sure what the difference is). So what is going wrong, and what is the solution? Thanks -- Brian May