From 89c5b5292b941c03d6dd080a70c8c03a6daa8c52 Mon Sep 17 00:00:00 2001
From: Michael Fladischer <fladi@debian.org>
Date: Mon, 10 Oct 2022 20:13:08 +0000
Subject: [PATCH] Provide setup.cfg to pytest during autopkgtests to set the
 correct asyncio mode (Closes: #1019223).

---
 debian/changelog      | 2 ++
 debian/tests/upstream | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c8ffb64..162e83e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ python-channels-redis (4.0.0-1) UNRELEASED; urgency=low
   * New upstream release.
   * Use github tags instead of releases for d/watch.
   * Drop patch that removes dependency on ascync-generator.
+  * Provide setup.cfg to pytest during autopkgtests to set the correct
+    asyncio mode (Closes: #1019223).
 
  -- Michael Fladischer <fladi@debian.org>  Mon, 10 Oct 2022 19:18:27 +0000
 
diff --git a/debian/tests/upstream b/debian/tests/upstream
index 6a6792c..a1de9d7 100644
--- a/debian/tests/upstream
+++ b/debian/tests/upstream
@@ -2,7 +2,7 @@
 
 set -e
 
-cp -r tests ${AUTOPKGTEST_TMP}
+cp -r tests setup.cfg ${AUTOPKGTEST_TMP}
 cd ${AUTOPKGTEST_TMP}
 for p in $(py3versions -s); do
     DJANGO_SETTINGS_MODULE=tests.settings $p -m pytest -k "not test_sentinel and not test_pubsub_sentinel and not test_receive_cancel" tests
-- 
GitLab