Permalink
Browse files

Remove unused code in sh_spec.py.

Simplify error in csv2html.py (the filename appeared twice).
  • Loading branch information...
Andy Chu
Andy Chu committed Feb 2, 2018
1 parent 309b0a4 commit 42a64e4fa8d2d37cb14bb808f5ff74d061541707
Showing with 1 addition and 22 deletions.
  1. +0 −21 test/sh_spec.py
  2. +1 −1 web/table/csv2html.py
View
@@ -432,27 +432,6 @@ def Check(self, shell, record):
return Result.PASS, '' # ideal behavior
# UNUSED
class NonzeroAssertion(object):
"""Check that an integer is not zero.
NOTE: Do we need this now that we have qualifiers?
"""
def __init__(self, key):
self.key = key
self.qualified = qualified # whether this was a special case?
def Check(self, shell, record):
actual = record[self.key]
if actual != 0:
msg = '%s %s: Expected nonzero status, got %r' % (shell, self.key,
actual)
return Result.FAIL, msg
if self.qualified:
return Result.OK, ''
return Result.PASS, ''
PIPE = subprocess.PIPE
def RunCases(cases, case_predicate, shells, env, out):
View
@@ -300,7 +300,7 @@ def main(argv):
try:
schema_f = open(opts.schema)
except IOError as e:
raise RuntimeError('Error opening %s: %s' % (opts.schema, e))
raise RuntimeError('Error opening schema: %s' % e)
else:
schema_path = csv_path.replace('.csv', '.schema.csv')
log('schema path %s', schema_path)

0 comments on commit 42a64e4

Please sign in to comment.