[game-data-packager] 02/08: better assertions

Simon McVittie smcv at debian.org
Wed Jan 14 00:38:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit c27b94bdac2f6220185ace3853769b55b9597ef7
Author: Simon McVittie <smcv at debian.org>
Date:   Wed Jan 14 00:16:59 2015 +0000

    better assertions
---
 lib/game_data_packager/__init__.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index ca3c3cd..9c1d98e 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -518,10 +518,10 @@ class GameData(object):
                 # if this is a placeholder for a bunch of alternatives, then
                 # it doesn't make sense for it to have a defined checksum
                 # or size
-                assert wanted.md5 is None
-                assert wanted.sha1 is None
-                assert wanted.sha256 is None
-                assert wanted.size is None
+                assert wanted.md5 is None, wanted.name
+                assert wanted.sha1 is None, wanted.name
+                assert wanted.sha256 is None, wanted.name
+                assert wanted.size is None, wanted.name
 
     def __enter__(self):
         return self

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list