def test_strptime(self):
        # Should be able to go round-trip from strftime to strptime without
        # raising an exception.
        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 __HOLE__:
                self.fail("conversion specifier %r failed with '%s' input." %
                          (format, strf_output))
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py/TimeTestCase.test_strptime