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

Method test_file_created

Lib/test/test_logging.py:6434–6441  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6432 rh.close()
6433
6434 def test_file_created(self):
6435 # checks that the file is created and assumes it was created
6436 # by us
6437 os.unlink(self.fn)
6438 rh = logging.handlers.RotatingFileHandler(self.fn, encoding="utf-8")
6439 rh.emit(self.next_rec())
6440 self.assertLogFile(self.fn)
6441 rh.close()
6442
6443 def test_max_bytes(self, delay=False):
6444 kwargs = {'delay': delay} if delay else {}

Callers

nothing calls this directly

Calls 5

next_recMethod · 0.80
assertLogFileMethod · 0.80
unlinkMethod · 0.45
emitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected