diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2012-11-05 10:52:57 -0600 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2012-11-05 10:52:57 -0600 |
commit | 5761a2c55ddea29d47594365f31b69683cd4d5dd (patch) | |
tree | 6e564b615a813ad4fe1eea4b595db65233d1e228 /tests/test_serializer.py | |
parent | a6ef09d94300718197a4fa8757fd3a7a45876963 (diff) | |
download | keystone-5761a2c55ddea29d47594365f31b69683cd4d5dd.tar.gz keystone-5761a2c55ddea29d47594365f31b69683cd4d5dd.tar.xz keystone-5761a2c55ddea29d47594365f31b69683cd4d5dd.zip |
HACKING compliance: consistent use of 'except'
Change-Id: I8301043965e08ffdec63441e612628d9a60876b7
Diffstat (limited to 'tests/test_serializer.py')
-rw-r--r-- | tests/test_serializer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_serializer.py b/tests/test_serializer.py index 0a4ff66b..288e5516 100644 --- a/tests/test_serializer.py +++ b/tests/test_serializer.py @@ -29,7 +29,7 @@ class XmlSerializerTestCase(test.TestCase): """ try: self.assertEqual(a, b) - except: + except AssertionError: a = re.sub('[ \n]+', ' ', a).strip().split() b = re.sub('[ \n]+', ' ', b).strip().split() self.assertEqual(a, b) |