Back to index

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

Classes

class  PosixPathTest
class  PosixCommonTest

Functions

def skip_if_ABSTFN_contains_backslash
def safe_rmdir
def test_main

Variables

 posix = None
tuple ABSTFN = abspath(support.TESTFN)

Function Documentation

def test.test_posixpath.safe_rmdir (   dirname)

Definition at line 29 of file test_posixpath.py.

00029 
00030 def safe_rmdir(dirname):
00031     try:
00032         os.rmdir(dirname)
00033     except OSError:
00034         pass

Here is the caller graph for this function:

On Windows, posixpath.abspath still returns paths with backslashes
instead of posix forward slashes. If this is the case, several tests
fail, so skip them.

Definition at line 19 of file test_posixpath.py.

00019 
00020 def skip_if_ABSTFN_contains_backslash(test):
00021     """
00022     On Windows, posixpath.abspath still returns paths with backslashes
00023     instead of posix forward slashes. If this is the case, several tests
00024     fail, so skip them.
00025     """
00026     found_backslash = '\\' in ABSTFN
00027     msg = "ABSTFN is not a posix path - tests fail"
00028     return [test, unittest.skip(msg)(test)][found_backslash]

Definition at line 515 of file test_posixpath.py.

00515 
00516 def test_main():
00517     support.run_unittest(PosixPathTest, PosixCommonTest)
00518 


Variable Documentation

Definition at line 17 of file test_posixpath.py.

Definition at line 12 of file test_posixpath.py.