X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftest%2F002%2Ftest.py;h=919a70ab52f909fe521a1430a66be2f2f331cde9;hb=16f731a893f0ba036a995c25b8b5f3490394070e;hp=9467f28125bc739681ea0be20efcf248e781554f;hpb=59fd5aa2a8be3b76dbc968429c457f096adfa472;p=dak.git diff --git a/dak/test/002/test.py b/dak/test/002/test.py old mode 100755 new mode 100644 index 9467f281..919a70ab --- a/dak/test/002/test.py +++ b/dak/test/002/test.py @@ -1,8 +1,7 @@ #!/usr/bin/env python # Check utils.parse_changes()'s for handling empty files -# Copyright (C) 2000 James Troup -# $Id: test.py,v 1.1 2001-03-02 02:31:07 troup Exp $ +# Copyright (C) 2000, 2006 James Troup # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,16 +21,16 @@ import os, sys -sys.path.append(os.path.abspath('../../')); +sys.path.append(os.path.abspath('../../')) import utils ################################################################################ def fail(message): - sys.stderr.write("%s\n" % (message)); - sys.exit(1); - + sys.stderr.write("%s\n" % (message)) + sys.exit(1) + ################################################################################ def main (): @@ -40,9 +39,9 @@ def main (): utils.parse_changes('empty.changes', 0) except utils.changes_parse_error_exc, line: if line != "[Empty changes file]": - fail("Returned exception with unexcpected error message `%s'." % (line)); + fail("Returned exception with unexcpected error message `%s'." % (line)) else: - fail("Didn't raise a 'parse error' exception for a zero-length .changes file."); + fail("Didn't raise a 'parse error' exception for a zero-length .changes file.") ################################################################################