From c625981eb67649dbfbcb99da6dd3ed32eda62826 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Fri, 4 Mar 2016 13:12:01 -0800 Subject: [PATCH] Check version info the old way because of python 2.6 --- test/test_serialization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_serialization.py b/test/test_serialization.py index 00c08cc..47c45e8 100644 --- a/test/test_serialization.py +++ b/test/test_serialization.py @@ -42,7 +42,7 @@ def test_roundtrip_bytes(all_types): msg = all_types.TestAllTypes.from_bytes(message_bytes) test_regression.check_all_types(msg) -@pytest.mark.skipif(sys.version_info.major < 3, reason="mmap doesn't implement the buffer interface under python 2.") +@pytest.mark.skipif(sys.version_info[0] < 3, reason="mmap doesn't implement the buffer interface under python 2.") def test_roundtrip_bytes_mmap(all_types): msg = all_types.TestAllTypes.new_message() test_regression.init_all_types(msg)