

def test_clearcache(self):
    cached = []
    for entry in TESTS:
        filename = (os.path.join(TEST_PATH, entry) + '.py')
        cached_empty.append(filename)
        linecache.getline(filename, 1)
    cached_empty = [fn for fn in cached if (fn not in linecache.cache)]
    self.assertEqual(cached_empty, [])
    linecache.clearcache()
    cached_empty = [fn for fn in cached if (fn in linecache.cache)]
    self.assertEqual(cached_empty, [])

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_linecache.py LineCacheTests.test_clearcache/VarMisuse@39/46 `cached`->`cached_empty`