]> git.phdru.name Git - m_librarian.git/blobdiff - tests/run_all.py
Update code for compatibility with Python 3
[m_librarian.git] / tests / run_all.py
index 2e217bf31e814c42286fc7a96912fd53e6c3680b..c04d9ed372f2baa2a6b4ba2dc4b8ef0b58da7936 100755 (executable)
@@ -1,6 +1,7 @@
 #! /usr/bin/env python
 
 
+from __future__ import print_function
 import os
 import sys
 import subprocess
@@ -31,7 +32,7 @@ def main():
     os.environ["PYTHONPATH"] = os.curdir
 
     for test in sorted(tests):
-        print test
+        print(test)
         subprocess.call((sys.executable, '-m', test))
 
 if __name__ == '__main__':