瀏覽代碼

tests: disable datagram bytes() test on Python 2

See #297
rdb 7 年之前
父節點
當前提交
22f933a419
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/putil/test_datagram.py

+ 2 - 0
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
 
[email protected](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')