Enable tests again.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=403
This commit is contained in:
parent
d4b42b6c18
commit
5267a1835f
@ -1,6 +1,7 @@
|
||||
---
|
||||
Lib/email/test/test_email.py | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
Lib/email/utils.py | 2 +-
|
||||
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/Lib/email/test/test_email.py
|
||||
+++ b/Lib/email/test/test_email.py
|
||||
@ -18,3 +19,14 @@
|
||||
def test_getaddresses_nasty(self):
|
||||
for addresses, expected in (
|
||||
([u'"Sürname, Firstname" <to@example.com>'],
|
||||
--- a/Lib/email/utils.py
|
||||
+++ b/Lib/email/utils.py
|
||||
@@ -307,7 +307,7 @@ def parseaddr(addr, strict=True):
|
||||
if isinstance(addr, list):
|
||||
addr = addr[0]
|
||||
|
||||
- if not isinstance(addr, str):
|
||||
+ if not isinstance(addr, basestring):
|
||||
return ('', '')
|
||||
|
||||
addr = _pre_parse_validation([addr])[0]
|
||||
|
@ -19,7 +19,7 @@
|
||||
%define so_version 2_7-1_0
|
||||
# We really don't care about quality of this package anymore, it
|
||||
# will be soon gone (bsc#1219306).
|
||||
%bcond_with tests
|
||||
%bcond_without tests
|
||||
|
||||
Name: python-base
|
||||
Version: 2.7.18
|
||||
|
Loading…
x
Reference in New Issue
Block a user