Lines Matching refs:str

40         self.assertIs(str, tempfile._infer_return_type(''))
42 self.assertIs(str, tempfile._infer_return_type(None))
45 self.assertIs(str, tempfile._infer_return_type('', ''))
53 self.assertIs(str, tempfile._infer_return_type(None, ''))
54 self.assertIs(str, tempfile._infer_return_type('', None))
55 self.assertIs(str, tempfile._infer_return_type(None, None))
64 self.assertIs(str, tempfile._infer_return_type(pathlib.Path('/')))
74 self.assertIs(str, tempfile._infer_return_type(Path('/')))
76 self.assertIs(str, tempfile._infer_return_type('', Path('')))
79 self.assertIs(str, tempfile._infer_return_type(None, Path('')))
106 str
107 if type(dir) is str or isinstance(dir, os.PathLike) else
112 self.assertIs(type(name), str if type(pre) is str else bytes,
115 self.assertIs(type(name), str if type(suf) is str else bytes,
118 self.assertIs(type(name), str, "default return type must be str")
129 check = self.str_check if isinstance(nbase, str) else self.b_check
238 self.assertIsInstance(c, str)
385 def write(self, str):
386 os.write(self.fd, str)
395 if output_type is str:
425 # Can't mix str & binary types in the args.
518 str)
553 self.assertIsInstance(p, str)
630 if output_type is str:
688 self.assertIsInstance(tempfile.tempdir, (str, type(None)))
693 self.assertIsInstance(path, str)
696 self.assertIsInstance(tempfile.gettempdir(), str)
705 self.assertIsInstance(path, str)
709 self.assertIsInstance(path, str)
713 self.assertIsInstance(path, str)
727 if output_type is str:
775 if(isinstance(i, str)):
855 self.assertIsInstance(tempfile.tempdir, (str, type(None)))
859 self.assertIsInstance(path, str)
862 self.assertIsInstance(tempfile.gettempdir(), str)
869 self.assertIsInstance(path, str)
872 self.assertIsInstance(path, str)
875 self.assertIsInstance(path, str)