Lines Matching refs:path
10 import os.path
303 function = self.parse_function("module os\nos.access\n path: int")
306 p = function.parameters['path']
307 self.assertEqual('path', p.name)
351 function = self.parse_function("module os\nos.access\n path: path_t(allow_fd=1)")
352 p = function.parameters['path']
360 path: str
363 Perform a stat system call on the given path.""")
365 stat($module, /, path)
368 Perform a stat system call on the given path.
370 path
402 path: str
405 self.assertEqual("stat($module, /, path)\n--\n\nThis/used to break Clinic!", function.docstring)
772 block = self.parse('module os\nos.access\n path: "s"')
774 self.assertIsInstance((function.parameters['path']).converter, clinic.str_converter)
782 s = self.parse_function_should_fail('module os\nos.access\n path: 42')
785 s = self.parse_function_should_fail('module os\nos.access\n path: 42.42')
788 s = self.parse_function_should_fail('module os\nos.access\n path: 42j')
791 s = self.parse_function_should_fail('module os\nos.access\n path: b"42"')
801 'module os\nos.access\n path: {"some": "dictionary"}'
806 'module os\nos.access\n path: ["list", "of", "strings"]'
811 'module os\nos.access\n path: (x for x in range(42))'
854 testfile = os.path.join(tmp_dir, 'clinic.test.c')