[Python-modules-team] Bug#888407: celery tests are run with pytest not nosetest

Nishanth Aravamudan nish.aravamudan at canonical.com
Thu Jan 25 05:31:41 UTC 2018


Package: celery
Version: 4.1.0-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:


  * d/t/upstream: tests are now run with pytest.

With this, the DEP8 tests pass again.

Thanks for considering the patch.

*** /tmp/tmpsI8Noq/celery_4.1.0-2ubuntu1.debdiff
diff -Nru celery-4.1.0/debian/tests/upstream celery-4.1.0/debian/tests/upstream
--- celery-4.1.0/debian/tests/upstream	2017-11-15 05:58:01.000000000 -0800
+++ celery-4.1.0/debian/tests/upstream	2018-01-24 21:26:34.000000000 -0800
@@ -1,3 +1,14 @@
 #!/bin/sh
 
-nosetests -v -P celery.tests
+# distro tests appear to be intentional to fail:
+# https://github.com/celery/celery/issues/2517
+# integration tests require a rabbitmq-server:
+# https://github.com/celery/celery/issues/3917
+
+for p in $(pyversions -s); do
+	$p $(which pytest) --ignore t/distro --ignore t/integration t
+done
+
+for p in $(py3versions -s); do
+	$p $(which pytest-3) --ignore t/distro --ignore t/integration t
+done


-- System Information:
Debian Release: buster/sid
  APT prefers bionic
  APT policy: (500, 'bionic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-25-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd



More information about the Python-modules-team mailing list