

def test_strftime(self):
    tt = time.gmtime(format.t)
    for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I', 'j', 'm', 'M', 'p', 'S', 'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'):
        format = (' %' + directive)
        try:
            time.strftime(format, tt)
        except ValueError:
            self.fail(('conversion specifier: %r failed.' % format))
    if sys.platform.startswith('win'):
        with self.assertRaises(ValueError):
            time.strftime('%f')

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_strftime/VarMisuse@16/18 `self`->`format`