Back to index

python3.2  3.2.2
Public Member Functions
test.test_sysconfig.MakefileTests Class Reference

List of all members.

Public Member Functions

def test_get_makefile_filename
def test_parse_makefile

Detailed Description

Definition at line 333 of file test_sysconfig.py.


Member Function Documentation

Definition at line 336 of file test_sysconfig.py.

00336 
00337     def test_get_makefile_filename(self):
00338         makefile = sysconfig.get_makefile_filename()
00339         self.assertTrue(os.path.isfile(makefile), makefile)

Here is the call graph for this function:

Definition at line 340 of file test_sysconfig.py.

00340 
00341     def test_parse_makefile(self):
00342         self.addCleanup(unlink, TESTFN)
00343         with open(TESTFN, "w") as makefile:
00344             print("var1=a$(VAR2)", file=makefile)
00345             print("VAR2=b$(var3)", file=makefile)
00346             print("var3=42", file=makefile)
00347             print("var4=$/invalid", file=makefile)
00348             print("var5=dollar$$5", file=makefile)
00349         vars = sysconfig._parse_makefile(TESTFN)
00350         self.assertEqual(vars, {
00351             'var1': 'ab42',
00352             'VAR2': 'b42',
00353             'var3': 42,
00354             'var4': '$/invalid',
00355             'var5': 'dollar$5',
00356         })
00357 

Here is the call graph for this function:


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