19c9c7b6d534e88db6e365741f3e5f9addff4a97,tensorflow_datasets/core/download/download_manager_test.py,DownloadManagerTest,test_extract,#DownloadManagerTest#,201

Before Change


        _get_promise_on_event("/extract_dir/TAR.new"))
    manager = self._get_manager()
    extracted_new.set()
    res = manager.extract(files)
    expected = {
        "cached": "/extract_dir/ZIP.cached",
        "new": "/extract_dir/TAR.new",
        "noextract": "/dl_dir/noextract",

After Change


        "noextract": "/dl_dir/noextract",
    }
    self.assertEqual(res, expected)
    self.assertCountEqual(self.extracted_paths, ["/dl_dir/new"])

  def test_extract_twice_parallel(self):
    // Make sure calling extract twice on same resource actually does the
    // extraction once.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/datasets
Commit Name: 19c9c7b6d534e88db6e365741f3e5f9addff4a97
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_extract


Project Name: tensorflow/datasets
Commit Name: b3e1438a8271a10f7b6d0069a692c7b534d69c89
Time: 2019-01-18
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_extract_twice_parallel


Project Name: tyarkoni/pliers
Commit Name: a6b1cc62994df8c56c531127a3a3e35edbe65016
Time: 2016-04-24
Author: tyarkoni@gmail.com
File Name: featurex/tests/test_core.py
Class Name: TestCore
Method Name: test_lazy_extraction