MCPcopy Index your code
hub / github.com/python/cpython / _test_parse_makefile_recursion

Method _test_parse_makefile_recursion

Lib/test/test_sysconfig.py:790–801  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

788 })
789
790 def _test_parse_makefile_recursion(self):
791 self.addCleanup(unlink, TESTFN)
792 with open(TESTFN, "w") as makefile:
793 print("var1=var1=$(var1)", file=makefile)
794 print("var2=var3=$(var3)", file=makefile)
795 print("var3=var2=$(var2)", file=makefile)
796 vars = _parse_makefile(TESTFN)
797 self.assertEqual(vars, {
798 'var1': 'var1=',
799 'var2': 'var3=var2=',
800 'var3': 'var2=',
801 })
802
803 def test_parse_makefile_renamed_vars(self):
804 self.addCleanup(unlink, TESTFN)

Callers

nothing calls this directly

Calls 4

_parse_makefileFunction · 0.90
addCleanupMethod · 0.80
openFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected