aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils.py')
-rw-r--r--test/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils.py b/test/utils.py
index 0b55254..cdff0d2 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -2,7 +2,7 @@
# ******************************************************************************
#
-# Copyright (C) 2010 Olivier Tilloy <olivier@tilloy.net>
+# Copyright (C) 2010-2012 Olivier Tilloy <olivier@tilloy.net>
#
# This file is part of the pyexiv2 distribution.
#
@@ -36,7 +36,7 @@ class TestConversions(unittest.TestCase):
def test_undefined_to_string(self):
self.assertEqual(undefined_to_string("48 50 50 49"), "0221")
self.assertEqual(undefined_to_string("48 50 50 49 "), "0221")
- self.assertRaises(ValueError, undefined_to_string, "")
+ self.assertEqual(undefined_to_string(""), "")
self.assertRaises(ValueError, undefined_to_string, "foo")
self.assertRaises(ValueError, undefined_to_string, "48 50 50 49")