Source

pypy / pypy / module / zipimport / test / test_undocumented.py

Diff from to

pypy/module/zipimport/test/test_undocumented.py

         try:
             importer = zipimport.zipimporter(os.path.join(zip_path, '_pkg'))
             assert zip_path in zipimport._zip_directory_cache
-            file_set = set(zipimport._zip_directory_cache[zip_path].iterkeys())
+            file_set = set(zipimport._zip_directory_cache[zip_path].keys())
             compare_set = set(path.replace(os.path.sep, '/') + '.py'
                               for path in self.created_paths)
             assert file_set == compare_set