SHA256
1
0
forked from pool/python
Matej Cepl 2024-04-16 15:39:10 +00:00 committed by Git OBS Bridge
parent 5267a1835f
commit bfb85e8df7
2 changed files with 4 additions and 6 deletions

View File

@ -11,10 +11,10 @@
+ def test_parsing_unicode_str(self):
+ email_in = "Honza Novák <honza@example.com>"
+ 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@example.com>"),
+ ('Honza str Nov\xc3\xa1k', 'honza@example.com'))
+ self.assertEqual(Utils.parseaddr(u"Honza unicode Novák <honza@example.com>"),
+ ('Honza unicode Nov\xe1k', 'honza@example.com'))
+
def test_getaddresses_nasty(self):
for addresses, expected in (

View File

@ -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