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

Method strftime

Lib/test/datetimetester.py:1664–1665  ·  view source on GitHub ↗
(self, format_spec)

Source from the content-addressed store, hash-verified

1662 # check that a derived class's strftime gets called
1663 class B(self.theclass):
1664 def strftime(self, format_spec):
1665 return 'B'
1666 b = B(2007, 9, 10)
1667 self.assertEqual(b.__format__(''), str(dt))
1668

Callers 15

format_datetimeFunction · 0.45
formatTimeMethod · 0.45
doRolloverMethod · 0.45
current_time_displayMethod · 0.45
strftest1Method · 0.45
strftest2Method · 0.45
test_y_before_1900Method · 0.45
test_y_1900Method · 0.45
test_y_after_1900Method · 0.45
__format__Method · 0.45
test_issue127903Method · 0.45
local_february_nameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected