From 22f933a41970e285d6abc4fd6c5d19e50fd423de Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 6 Apr 2018 20:34:48 +0200 Subject: [PATCH] tests: disable datagram bytes() test on Python 2 See #297 --- tests/putil/test_datagram.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/putil/test_datagram.py b/tests/putil/test_datagram.py index ceadff67b8..1349bd5656 100644 --- a/tests/putil/test_datagram.py +++ b/tests/putil/test_datagram.py @@ -1,5 +1,6 @@ import pytest from panda3d import core +import sys # Fixtures for generating interesting datagrams (and verification functions) on # the fly... @@ -76,6 +77,7 @@ def datagram_large(): return dg, readback_function +@pytest.mark.skipif(sys.version_info < (3, 0), reason="Requires Python 3") def test_datagram_bytes(): """Tests that we can put and get a bytes object on Datagram.""" dg = core.Datagram(b'abc\x00')