]> git.phdru.name Git - m_lib.git/blob - m_lib/flad/test/test5.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / flad / test / test5.py
1 #! /usr/bin/env python
2
3
4 from __future__ import print_function
5 from m_lib.flad import fladc
6
7
8 def test():
9    print("Test:", end=' ')
10
11    try: # Note! This must raise fladc.error - too many records in the file
12       conf = fladc.load_file("test.txt")
13    except fladc.error:
14       print("Ok")
15    else:
16       print("Error!")
17
18
19 if __name__ == "__main__":
20    test()