mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Allow to check for empty output in tests
This commit is contained in:
@@ -392,10 +392,6 @@ class BaseTest(object):
|
||||
a = match_prepare(a)
|
||||
b = match_prepare(b)
|
||||
|
||||
# Make sure there is something to compare after `match_prepare`
|
||||
if not a or not b:
|
||||
raise Exception("content empty")
|
||||
|
||||
if a != b:
|
||||
diff = "".join(difflib.unified_diff(
|
||||
[l + "\n" for l in a.split("\n")], [l + "\n" for l in b.split("\n")]))
|
||||
|
||||
Reference in New Issue
Block a user