aboutsummaryrefslogtreecommitdiffstats
path: root/unittest/xmp.py
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-02-26 20:38:32 +0100
committerOlivier Tilloy <olivier@tilloy.net>2009-02-26 20:38:32 +0100
commit4eff232bdf26b4d57641f7fac18f9a6b7e9b6fa0 (patch)
treee265c2f045110c44c74722f1589e294ccc273599 /unittest/xmp.py
parent08a2594633a3116cf659584026a6102437365a04 (diff)
downloadpyexiv2-4eff232bdf26b4d57641f7fac18f9a6b7e9b6fa0.tar.gz
EXIF Long and SLong two-ways conversions.
Fixed some meaningless unit tests for integer conversions.
Diffstat (limited to 'unittest/xmp.py')
-rw-r--r--unittest/xmp.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittest/xmp.py b/unittest/xmp.py
index 970f8fb..c672d9d 100644
--- a/unittest/xmp.py
+++ b/unittest/xmp.py
@@ -165,8 +165,7 @@ class TestXmpTag(unittest.TestCase):
self.assertEqual(XmpTag._convert_to_string(-57, xtype), '-57')
# Invalid values
self.failUnlessRaises(XmpValueError, XmpTag._convert_to_string, 'invalid', xtype)
- self.failUnlessRaises(XmpValueError, XmpTag._convert_to_string, '3.14', xtype)
- self.failUnlessRaises(XmpValueError, XmpTag._convert_to_string, '1E3', xtype)
+ self.failUnlessRaises(XmpValueError, XmpTag._convert_to_string, 3.14, xtype)
def test_convert_to_python_langalt(self):
xtype = 'Lang Alt'