3bb4e7c9d8148da426cba84f884b7b59d44d074a,pyemma/coordinates/tests/test_traj_info_cache.py,TestTrajectoryInfoCache,test_no_sqlite,#TestTrajectoryInfoCache#,290

Before Change


            return __import__(name, *args)

        from pyemma.coordinates.data.util import traj_info_cache
        with mock.patch("pyemma.coordinates.data.util.traj_info_cache", "__import__",
                        side_effect=import_mock, create=True):
            TrajectoryInfoCache._instance = None
            TrajectoryInfoCache(self.tempfile)

if __name__ == "__main__":
    unittest.main()

After Change


    def test_no_sqlite(self):
        // create new instance (init has to be called, install temporary import hook to raise importerror for sqlite3
        import sys
        del sys.modules["sqlite3"]

        class meta_ldr(object):
            def find_module(self, fullname, path):
                if fullname.startswith("sqlite3"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 3bb4e7c9d8148da426cba84f884b7b59d44d074a
Time: 2016-08-22
Author: m.scherer@fu-berlin.de
File Name: pyemma/coordinates/tests/test_traj_info_cache.py
Class Name: TestTrajectoryInfoCache
Method Name: test_no_sqlite


Project Name: comic/grand-challenge.org
Commit Name: 4d9d2a1fc4e0d9289000a235340235802d51a97a
Time: 2021-02-12
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _create_itk_from_dcm


Project Name: dask/distributed
Commit Name: e736c0beee25584bbb7310c369c97b11b88ec8dc
Time: 2021-01-20
Author: fjetter@users.noreply.github.com
File Name: distributed/tests/test_semaphore.py
Class Name:
Method Name: test_release_semaphore_after_timeout