mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
parent
b4d29e6096
commit
22f933a419
@ -1,5 +1,6 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from panda3d import core
|
from panda3d import core
|
||||||
|
import sys
|
||||||
|
|
||||||
# Fixtures for generating interesting datagrams (and verification functions) on
|
# Fixtures for generating interesting datagrams (and verification functions) on
|
||||||
# the fly...
|
# the fly...
|
||||||
@ -76,6 +77,7 @@ def datagram_large():
|
|||||||
|
|
||||||
return dg, readback_function
|
return dg, readback_function
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.version_info < (3, 0), reason="Requires Python 3")
|
||||||
def test_datagram_bytes():
|
def test_datagram_bytes():
|
||||||
"""Tests that we can put and get a bytes object on Datagram."""
|
"""Tests that we can put and get a bytes object on Datagram."""
|
||||||
dg = core.Datagram(b'abc\x00')
|
dg = core.Datagram(b'abc\x00')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user