From 26dc275db3c350c5e21e39d373c4e98a3a0c2bfb Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 8 Apr 2015 00:39:34 -0300 Subject: [PATCH] Compare full lists instead of looping over items as suggested by @hackebrot --- tests/browser/test_tabhistory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/browser/test_tabhistory.py b/tests/browser/test_tabhistory.py index dcebe94f4..6a955a38b 100644 --- a/tests/browser/test_tabhistory.py +++ b/tests/browser/test_tabhistory.py @@ -81,8 +81,8 @@ class TestSerializeHistory: def test_userdata(self): """Check if all user data has been restored to self.user_data.""" - for item, user_data in zip(self.ITEMS, self.user_data): - assert user_data == item.user_data + userdata_items = [item.user_data for item in self.ITEMS] + assert userdata_items == self.user_data def test_currentitem(self): """Check if the current item index was loaded correctly."""