Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_pep277 Namespace Reference

Classes

class  UnicodeFileTests
class  UnicodeNFCFileTests
class  UnicodeNFDFileTests
class  UnicodeNFKCFileTests
class  UnicodeNFKDFileTests

Functions

def deltree
def test_main

Variables

list filenames
tuple fsencoding = sys.getfilesystemencoding()

Function Documentation

def test.test_pep277.deltree (   dirname)

Definition at line 57 of file test_pep277.py.

00057 
00058 def deltree(dirname):
00059     # Don't hide legitimate errors:  if one of these suckers exists, it's
00060     # an error if we can't remove it.
00061     if os.path.exists(dirname):
00062         # must pass unicode to os.listdir() so we get back unicode results.
00063         for fname in os.listdir(str(dirname)):
00064             os.unlink(os.path.join(dirname, fname))
00065         os.rmdir(dirname)
00066 

Here is the caller graph for this function:

Definition at line 194 of file test_pep277.py.

00194 
00195 def test_main():
00196     try:
00197         support.run_unittest(
00198             UnicodeFileTests,
00199             UnicodeNFCFileTests,
00200             UnicodeNFDFileTests,
00201             UnicodeNFKCFileTests,
00202             UnicodeNFKDFileTests,
00203         )
00204     finally:
00205         deltree(support.TESTFN)
00206 

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 [
00002     '1_abc',
00003     '2_ascii',
00004     '3_Gr\xfc\xdf-Gott',
00005     '4_\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2',
00006     '5_\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435',
00007     '6_\u306b\u307d\u3093',
00008     '7_\u05d4\u05e9\u05e7\u05e6\u05e5\u05e1',
00009     '8_\u66e8\u66e9\u66eb',
00010     '9_\u66e8\u05e9\u3093\u0434\u0393\xdf',
00011     # Specific code points: fn, NFC(fn) and NFKC(fn) all differents
00012     '10_\u1fee\u1ffd',
00013     ]

Definition at line 7 of file test_pep277.py.

tuple test.test_pep277.fsencoding = sys.getfilesystemencoding()

Definition at line 47 of file test_pep277.py.