From 124376b3a707edf354fcc2e7311a86af864cf647 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Mon, 8 Jul 2019 21:14:54 +0300 Subject: Fix tests to be compatible with latest pytest Signed-off-by: Ivan Kanakarakis --- tests/test_12_s_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/test_12_s_utils.py') diff --git a/tests/test_12_s_utils.py b/tests/test_12_s_utils.py index c0293c55..cd1be8e9 100644 --- a/tests/test_12_s_utils.py +++ b/tests/test_12_s_utils.py @@ -14,10 +14,9 @@ from saml2.s_utils import do_attribute_statement from saml2.saml import Attribute, Subject from saml2.saml import NAME_FORMAT_URI -from py.test import raises - from pathutils import full_path + XML_HEADER = '\n' SUCCESS_STATUS_NO_HEADER = ( @@ -64,7 +63,7 @@ def _oeq(l1, l2): def test_inflate_then_deflate(): txt = """Selma Lagerlöf (1858-1940) was born in Östra Emterwik, Värmland, - Sweden. She was brought up on Mårbacka, the family estate, which she did + Sweden. She was brought up on Mårbacka, the family estate, which she did not leave until 1881, when she went to a teachers' college at Stockholm""" if not isinstance(txt, six.binary_type): txt = txt.encode('utf-8') -- cgit v1.2.1