Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes | Private Member Functions
test.test_memoryview.BaseMemorySliceTests Class Reference
Inheritance diagram for test.test_memoryview.BaseMemorySliceTests:
Inheritance graph
Collaboration diagram for test.test_memoryview.BaseMemorySliceTests:
Collaboration graph

List of all members.

Public Member Functions

def test_refs

Static Public Attributes

string source_bytes = "XabcdefY"

Private Member Functions

def _view
def _check_contents

Detailed Description

Definition at line 324 of file

Member Function Documentation

def test.test_memoryview.BaseMemorySliceTests._check_contents (   self,
) [private]

Definition at line 331 of file

00332     def _check_contents(self, tp, obj, contents):
00333         self.assertEqual(obj[1:7], tp(contents))

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_memoryview.BaseMemorySliceTests._view (   self,
) [private]

Definition at line 327 of file

00328     def _view(self, obj):
00329         m = memoryview(obj)
00330         return m[1:7]

Here is the caller graph for this function:

Definition at line 334 of file

00335     def test_refs(self):
00336         for tp in self._types:
00337             m = memoryview(tp(self._source))
00338             oldrefcount = sys.getrefcount(m)
00339             m[1:2]
00340             self.assertEqual(sys.getrefcount(m), oldrefcount)

Here is the call graph for this function:

Member Data Documentation

Definition at line 325 of file

The documentation for this class was generated from the following file: