-__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):
except OSError:
pass
+ def import_inpx(self, inpx):
+ import_inpx(os.path.join(os.path.dirname(__file__), inpx))
+
def main():
try:
unittest.main(testRunner=unittest.TextTestRunner())
- except SystemExit, msg:
+ except SystemExit as msg:
result = msg.args[0]
else:
result = 0