]> git.phdru.name Git - m_librarian.git/blobdiff - tests/__init__.py
Update code for compatibility with Python 3
[m_librarian.git] / tests / __init__.py
index da9e6a5f19d5624729a1164a032aa2b3c21e955d..e55661f9673427fac81535862bee5987575a2d24 100644 (file)
@@ -1,12 +1,11 @@
 
-__all__ = ['TestCase', 'main']
-
-
 import os
 import unittest
 from m_librarian.db import open_db, init_db
 from m_librarian.inp import import_inpx
 
+__all__ = ['TestCase', 'main']
+
 
 class TestCase(unittest.TestCase):
     def setUp(self):
@@ -30,7 +29,7 @@ class TestCase(unittest.TestCase):
 def main():
     try:
         unittest.main(testRunner=unittest.TextTestRunner())
-    except SystemExit, msg:
+    except SystemExit as msg:
         result = msg.args[0]
     else:
         result = 0