diff options
-rwxr-xr-x | metagen/metagenerator.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/metagen/metagenerator.py b/metagen/metagenerator.py index 87bd0f6..fd00caa 100755 --- a/metagen/metagenerator.py +++ b/metagen/metagenerator.py @@ -49,14 +49,14 @@ class MyMetadata(jaxml.XML_document): self.longdescription(longdesc) def do_tests(): - from . import meta_unittest + from metagen import meta_unittest fails = 0 for func in dir(meta_unittest): if func[0:4] == "test": try: - exec("print meta_unittest.%s.__name__ + ':'," % func) - exec("print meta_unittest.%s.__doc__" % func) - exec("print meta_unittest.%s()" % func) + exec("print(meta_unittest.%s.__name__ + ':', end='')" % func) + exec("print(meta_unittest.%s.__doc__)" % func) + exec("print(meta_unittest.%s())" % func) except: fails += 1 print("Test %s failed:" % func) |