From bfb85e8df721fc12ac47632e30b9f9239871c10a295872ec9693bcef42ffdbf4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 16 Apr 2024 15:39:10 +0000 Subject: [PATCH] Update the patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=404 --- bsc1222537-py2-email-addr-parse.patch | 8 ++++---- python-base.spec | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/bsc1222537-py2-email-addr-parse.patch b/bsc1222537-py2-email-addr-parse.patch index a02130c..3fff5e0 100644 --- a/bsc1222537-py2-email-addr-parse.patch +++ b/bsc1222537-py2-email-addr-parse.patch @@ -11,10 +11,10 @@ + def test_parsing_unicode_str(self): + email_in = "Honza Novák " -+ self.assertEqual(Utils.parseaddr(email_in), -+ ('Honza Nov\xc3\xa1k', 'honza@example.com')) -+ self.assertEqual(Utils.parseaddr(email_in.decode('utf-8')), -+ ('Honza Nov\xc3\xa1k', 'honza@example.com')) ++ self.assertEqual(Utils.parseaddr("Honza str Novák "), ++ ('Honza str Nov\xc3\xa1k', 'honza@example.com')) ++ self.assertEqual(Utils.parseaddr(u"Honza unicode Novák "), ++ ('Honza unicode Nov\xe1k', 'honza@example.com')) + def test_getaddresses_nasty(self): for addresses, expected in ( diff --git a/python-base.spec b/python-base.spec index 144b4ec..a6519e9 100644 --- a/python-base.spec +++ b/python-base.spec @@ -383,7 +383,6 @@ LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH \ make %{?_smp_mflags} $target %check -%if %{with test} # on hppa, the threading of glibc is quite broken. The tests just stop # at some point, and the machine does not build anything more until a # timeout several hours later. @@ -436,7 +435,6 @@ make test TESTOPTS="-l -w -x $EXCLUDE" TESTPYTHONOPTS="-R" #make test TESTOPTS="-l -u network -v" %endif # END OF CHECK SECTION -%endif %install # replace rest of /usr/local/bin/python or /usr/bin/python2.5 with /usr/bin/python