From c1e5a71904f043898f71330465f6d95d1d05df3b Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 9 Jun 2018 10:38:03 +0200 Subject: [PATCH] tests: ensure FrameBufferProperties has working copy constructor --- tests/display/test_fbprops.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/display/test_fbprops.py b/tests/display/test_fbprops.py index a4620efdfc..8beff3c153 100644 --- a/tests/display/test_fbprops.py +++ b/tests/display/test_fbprops.py @@ -1,6 +1,12 @@ from panda3d.core import FrameBufferProperties +def test_fbprops_copy_ctor(): + default = FrameBufferProperties.get_default() + fbprops = FrameBufferProperties(default) + assert fbprops == default + + def test_fbquality_depth(): # We check common framebuffer depth configurations to make sure they # are rated predictably with respect to each other when requesting 1 bit.