def test_regex_cleanup(self):
        # Make sure cached regexes are discarded when cache becomes "full".
        try:
            del _strptime._regex_cache['%d']
        except KeyError:
            pass
        bogus_key = 0
        while _strptime._CACHE_MAX_SIZE <= len(_strptime._regex_cache):
            _strptime._regex_cache[bogus_key] = None
            bogus_key += 1
        _strptime.strptime("10", "%d")
        self.failUnlessEqual(len(_strptime._regex_cache), 1)
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_strptime.py/CacheTests.test_regex_cleanup/swapped operands of `<=`