This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=0299d2e0fb946071487e9077f13f6d812de30300

commit 0299d2e0fb946071487e9077f13f6d812de30300
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Mar 8 03:23:03 2020 +0100

    test: Ignore python-3.8 runtime warnings in codespell
    
    The new python version makes codespell itself emit runtime warnings,
    which confuses the test suite. Ignore thse for now.
---
 debian/changelog | 1 +
 t/codespell.t    | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ae4413b36..bb738d053 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -230,6 +230,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
     - Suppress new bogus cppcheck 1.90 false positives.
     - libdpkg: Remove redundant assignment in t-ehandle unit test.
     - Skip backup files from codespell check.
+    - Ignore python-3.8 runtime warnings in codespell.
 
   [ Updated programs translations ]
   * German (Sven Joachim).
diff --git a/t/codespell.t b/t/codespell.t
index b65af960b..48f9ceab4 100644
--- a/t/codespell.t
+++ b/t/codespell.t
@@ -56,6 +56,9 @@ my $tags = qx(codespell @codespell_opts 2>&1);
 $tags =~ s/^WARNING: Binary file:.*\n//mg;
 $tags =~ s{^\./build-aux/.*\n}{}mg;
 $tags =~ s{^\./man/[a-zA-Z_]+/.*\n}{}mg;
+# XXX: Ignore python-3.8 runtime warnings:
+$tags =~ s{^.*: RuntimeWarning: line buffering .*\n}{}mg;
+$tags =~ s{^\s*file = builtins.open.*\n}{}mg;
 chomp $tags;
 
 my $ok = length $tags == 0;

-- 
Dpkg.Org's dpkg

Reply via email to