Skip to content

Commit 761133f

Browse files
committed
Add is_noncopyable checks to the new test
1 parent a1350d8 commit 761133f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unittests/test_non_copyable_recursive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_infinite_recursion_base_classes(self):
3939
test_ns = global_ns.namespace('Test1')
4040
cls = test_ns.class_('Child')
4141
declarations.type_traits_classes.find_noncopyable_vars(cls)
42+
self.assertTrue(declarations.type_traits_classes.is_noncopyable(cls))
4243

4344
def test_infinite_recursion_sstream(self):
4445
"""
@@ -60,6 +61,7 @@ def test_infinite_recursion_sstream(self):
6061
test_ns = global_ns.namespace('Test2')
6162
cls = test_ns.class_('FileStreamDataStream')
6263
declarations.type_traits_classes.find_noncopyable_vars(cls)
64+
self.assertFalse(declarations.type_traits_classes.is_noncopyable(cls))
6365

6466

6567
def create_suite():

0 commit comments

Comments
 (0)