summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2016-11-14 05:37:29 +0000
committerrsiddharth <s@ricketyspace.net>2016-11-14 05:37:29 +0000
commit94624361bff34f9dbde42b21ada1226887dbe3fb (patch)
treecb15ac51ea3a72aed3bd968c2b09ccecfb91dc0c /tests
parented02cc5a0b9c728df168ce539bf6ab76f084dd05 (diff)
Update `read_packages` function.
Returns list instead of an iterator. Fuck iterators. * gd_diff.py (read_packages): Update function. * tests/test_gd_diff.py (test_read_packages) (test_read_packages_sanity): Update tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gd_diff.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_gd_diff.py b/tests/test_gd_diff.py
index eb3b81e..33ce492 100644
--- a/tests/test_gd_diff.py
+++ b/tests/test_gd_diff.py
@@ -86,14 +86,14 @@ class TestGdDiff(object):
def test_read_packages(self):
- pkgs_iter = read_packages(self.pkgs_file)
- assert len(list(pkgs_iter)) == 82
+ pkgs = read_packages(self.pkgs_file)
+ assert len(pkgs) == 82
def test_read_packages_sanity(self):
- pkgs_iter = read_packages(self.pkgs_file)
+ pkgs = read_packages(self.pkgs_file)
- for pkg in pkgs_iter:
+ for pkg in pkgs:
assert not ' ' in pkg