summaryrefslogtreecommitdiffstats
path: root/unit-tests
diff options
context:
space:
mode:
authorNima Talebi <nima@autonomy.net.au>2009-05-24 00:26:23 +1000
committerNima Talebi <nima@autonomy.net.au>2009-05-24 00:26:23 +1000
commitaf27ba4dd2ffdef8e4ee3abf187475c1b3303f71 (patch)
treee81421584332fb363e7b5ba22fecd585b083226e /unit-tests
parent6b1598c8b98699b115525155b43d19365e79dd08 (diff)
downloadpython-dmidecode-af27ba4dd2ffdef8e4ee3abf187475c1b3303f71.tar.gz
python-dmidecode-af27ba4dd2ffdef8e4ee3abf187475c1b3303f71.tar.xz
python-dmidecode-af27ba4dd2ffdef8e4ee3abf187475c1b3303f71.zip
Completed preliminary reimplementation of type()
Updated test unit to match. Throw an exception instead of returning None/False in some functions.
Diffstat (limited to 'unit-tests')
-rwxr-xr-xunit-tests/unit2
1 files changed, 2 insertions, 0 deletions
diff --git a/unit-tests/unit b/unit-tests/unit
index 160641a..61a194c 100755
--- a/unit-tests/unit
+++ b/unit-tests/unit
@@ -161,6 +161,8 @@ try:
sys.stdout.write(" * %s\n"%output.keys())
except IOError, e:
failed(e, 2)
+ except LookupError, e:
+ failed(e, 2)
except IOError:
skipped()