debian/tests/import
raw| 1 | #!/usr/bin/python3 |
| 2 | |
| 3 | import sys |
| 4 | |
| 5 | def test_python3_import_imblearn(): |
| 6 | """Tests that imblearn is importable.""" |
| 7 | try: |
| 8 | import imblearn |
| 9 | except ImportError as err: |
| 10 | sys.stderr.write("Could not import imblearn: %s", err) |
| 11 | sys.exit(1) |
| 12 | |
| 13 | if __name__ == "__main__": |
| 14 | test_python3_import_imblearn() |
| 15 | sys.exit(0) |