Back to index

python3.2  3.2.2
Classes | Functions
test.test_bytes Namespace Reference

Classes

class  Indexable
class  BaseBytesTest
class  BytesTest
class  ByteArrayTest
class  AssortedBytesTest
class  BytearrayPEP3137Test
class  FixedStringTest
class  ByteArrayAsStringTest
class  BytesAsStringTest
class  SubclassTest
class  ByteArraySubclass
class  BytesSubclass
class  ByteArraySubclassTest
class  BytesSubclassTest

Functions

def check_bytes_warnings
def test_main

Detailed Description

Unit tests for the bytes and bytearray types.

XXX This is a mess.  Common tests should be moved to buffer_tests.py,
which itself ought to be unified with string_tests.py (and the latter
should be modernized).

Class Documentation

class test::test_bytes::ByteArraySubclass

Definition at line 1179 of file test_bytes.py.

class test::test_bytes::BytesSubclass

Definition at line 1182 of file test_bytes.py.


Function Documentation

Definition at line 22 of file test_bytes.py.

00022 
00023     def check_bytes_warnings(func):
00024         @functools.wraps(func)
00025         def wrapper(*args, **kw):
00026             with test.support.check_warnings(('', BytesWarning)):
00027                 return func(*args, **kw)
00028         return wrapper
else:

Here is the call graph for this function:

Definition at line 1205 of file test_bytes.py.

01205 
01206 def test_main():
01207     test.support.run_unittest(
01208         BytesTest, AssortedBytesTest, BytesAsStringTest,
01209         ByteArrayTest, ByteArrayAsStringTest, BytesSubclassTest,
01210         ByteArraySubclassTest, BytearrayPEP3137Test)

Here is the call graph for this function: