

def test_strptime(self):
    tt = time.gmtime(self.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)
        strf_output = time.strftime(format, tt)
        try:
            time.strptime(strf_output, format)
        except ValueError:
            self.fail(("conversion specifier %r failed with '%s' input." % (strf_output, strf_output)))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_strptime/VarMisuse@118/188 `format`->`strf_output`