From c41b751dec11d632f078ff9dcab2bc454905a127 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 15 Jan 2018 14:08:54 +0100 Subject: [PATCH] Print version before tests This helps with debugging of import-related issues - we know the version under test before the test has a chance to hang. Change-Id: If13cba60a19e9c15885355f85def4d134fa37993 Related: OS#2821 --- osmopy/__init__.py | 2 +- tests/test_py3.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/osmopy/__init__.py b/osmopy/__init__.py index c3d4b8c..4e818ed 100644 --- a/osmopy/__init__.py +++ b/osmopy/__init__.py @@ -1,4 +1,4 @@ #!/usr/bin/env python -__version__ = '0.0.8' +__version__ = '0.0.9' __all__ = ['obscvty', 'osmoutil', 'osmo_ipa', 'osmo_interact'] diff --git a/tests/test_py3.py b/tests/test_py3.py index 909d057..1c0c19b 100644 --- a/tests/test_py3.py +++ b/tests/test_py3.py @@ -38,6 +38,8 @@ if __name__ == '__main__': test_host = '127.0.0.5' test_port = str(random.randint(1025, 60000)) + print('Testing v%s on %s:%s' % (__version__, test_host, test_port)) + # Each client connection will create a new protocol instance server = loop.run_until_complete(loop.create_server(CtrlProtocol, test_host, test_port))