From 8041475aab2b8efad7d2857027331bd626d26312 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Wed, 26 Aug 2015 07:57:04 -0300 Subject: Imported Upstream version 7.6.4 --- tests/test_rss_feeds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_rss_feeds.py') diff --git a/tests/test_rss_feeds.py b/tests/test_rss_feeds.py index 992b1b7..f67ed40 100644 --- a/tests/test_rss_feeds.py +++ b/tests/test_rss_feeds.py @@ -91,9 +91,9 @@ class RSSFeedTest(unittest.TestCase): # lxml will complain if the encoding is specified in the # xml when running with unicode strings. # We do not include this in our content. - open_handle = opener_mock() - file_content = [call[1][0] - for call in open_handle.mock_calls[1:-1]][0] + file_content = [ + call[1][0] + for call in opener_mock.mock_calls[2:-1]][0] splitted_content = file_content.split('\n') self.encoding_declaration = splitted_content[0] content_without_encoding_declaration = splitted_content[1:] -- cgit v1.2.3