cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Functions | Variables
test_pytypes Namespace Reference

Functions

def test_int (doc)
 
def test_iterator (doc)
 
def test_iterable (doc)
 
def test_list (capture, doc)
 
def test_none (capture, doc)
 
def test_set (capture, doc)
 
def test_dict (capture, doc)
 
def test_str (doc)
 
def test_bytes (doc)
 
def test_capsule (capture)
 
def test_accessors ()
 
def test_constructors ()
 
def test_non_converting_constructors ()
 
def test_pybind11_str_raw_str ()
 
def test_implicit_casting ()
 
def test_print (capture)
 
def test_hash ()
 
def test_number_protocol ()
 
def test_list_slicing ()
 
def test_issue2361 ()
 
def test_memoryview (method, args, fmt, expected_view)
 
def test_memoryview_refcount (method)
 
def test_memoryview_from_buffer_empty_shape ()
 
def test_test_memoryview_from_buffer_invalid_strides ()
 
def test_test_memoryview_from_buffer_nullptr ()
 
def test_memoryview_from_memory ()
 
def test_builtin_functions ()
 
def test_isinstance_string_types ()
 
def test_pass_bytes_or_unicode_to_string_types ()
 
def test_weakref (create_weakref, create_weakref_with_callback)
 

Variables

 value
 

Function Documentation

◆ test_accessors()

def test_pytypes.test_accessors ( )

Definition at line 185 of file test_pytypes.py.

◆ test_builtin_functions()

def test_pytypes.test_builtin_functions ( )

Definition at line 499 of file test_pytypes.py.

◆ test_bytes()

def test_pytypes.test_bytes (   doc)

Definition at line 137 of file test_pytypes.py.

◆ test_capsule()

def test_pytypes.test_capsule (   capture)

Definition at line 146 of file test_pytypes.py.

◆ test_constructors()

def test_pytypes.test_constructors ( )
C++ default and converting constructors are equivalent to type calls in Python

Definition at line 224 of file test_pytypes.py.

◆ test_dict()

def test_pytypes.test_dict (   capture,
  doc 
)

Definition at line 76 of file test_pytypes.py.

◆ test_hash()

def test_pytypes.test_hash ( )

Definition at line 376 of file test_pytypes.py.

◆ test_implicit_casting()

def test_pytypes.test_implicit_casting ( )
Tests implicit casting when assigning or appending to dicts and lists.

Definition at line 331 of file test_pytypes.py.

◆ test_int()

def test_pytypes.test_int (   doc)

Definition at line 12 of file test_pytypes.py.

◆ test_isinstance_string_types()

def test_pytypes.test_isinstance_string_types ( )

Definition at line 509 of file test_pytypes.py.

◆ test_issue2361()

def test_pytypes.test_issue2361 ( )

Definition at line 419 of file test_pytypes.py.

◆ test_iterable()

def test_pytypes.test_iterable (   doc)

Definition at line 20 of file test_pytypes.py.

◆ test_iterator()

def test_pytypes.test_iterator (   doc)

Definition at line 16 of file test_pytypes.py.

◆ test_list()

def test_pytypes.test_list (   capture,
  doc 
)

Definition at line 24 of file test_pytypes.py.

◆ test_list_slicing()

def test_pytypes.test_list_slicing ( )

Definition at line 414 of file test_pytypes.py.

◆ test_memoryview()

def test_pytypes.test_memoryview (   method,
  args,
  fmt,
  expected_view 
)

Definition at line 437 of file test_pytypes.py.

◆ test_memoryview_from_buffer_empty_shape()

def test_pytypes.test_memoryview_from_buffer_empty_shape ( )

Definition at line 466 of file test_pytypes.py.

◆ test_memoryview_from_memory()

def test_pytypes.test_memoryview_from_memory ( )

Definition at line 492 of file test_pytypes.py.

◆ test_memoryview_refcount()

def test_pytypes.test_memoryview_refcount (   method)

Definition at line 457 of file test_pytypes.py.

◆ test_non_converting_constructors()

def test_pytypes.test_non_converting_constructors ( )

Definition at line 269 of file test_pytypes.py.

◆ test_none()

def test_pytypes.test_none (   capture,
  doc 
)

Definition at line 46 of file test_pytypes.py.

◆ test_number_protocol()

def test_pytypes.test_number_protocol ( )

Definition at line 392 of file test_pytypes.py.

◆ test_pass_bytes_or_unicode_to_string_types()

def test_pytypes.test_pass_bytes_or_unicode_to_string_types ( )

Definition at line 520 of file test_pytypes.py.

◆ test_print()

def test_pytypes.test_print (   capture)

Definition at line 351 of file test_pytypes.py.

◆ test_pybind11_str_raw_str()

def test_pytypes.test_pybind11_str_raw_str ( )

Definition at line 286 of file test_pytypes.py.

◆ test_set()

def test_pytypes.test_set (   capture,
  doc 
)

Definition at line 51 of file test_pytypes.py.

◆ test_str()

def test_pytypes.test_str (   doc)

Definition at line 101 of file test_pytypes.py.

◆ test_test_memoryview_from_buffer_invalid_strides()

def test_pytypes.test_test_memoryview_from_buffer_invalid_strides ( )

Definition at line 478 of file test_pytypes.py.

◆ test_test_memoryview_from_buffer_nullptr()

def test_pytypes.test_test_memoryview_from_buffer_nullptr ( )

Definition at line 483 of file test_pytypes.py.

◆ test_weakref()

def test_pytypes.test_weakref (   create_weakref,
  create_weakref_with_callback 
)

Definition at line 553 of file test_pytypes.py.

Variable Documentation

◆ value

test_pytypes.value

Definition at line 379 of file test_pytypes.py.