a232b0996ee6043f4a1bcd51b48013680dfa7172,reframe/frontend/loader.py,RegressionCheckLoader,load_from_module,#RegressionCheckLoader#Any#,83

Before Change


            if not isinstance(c, RegressionTest):
                continue

            testfile = inspect.getfile(type(c))
            try:
                conflicted = self._loaded[c.name]
            except KeyError:

After Change


        from reframe.core.pipeline import RegressionTest

        old_syntax = hasattr(module, "_get_checks")
        new_syntax = hasattr(module, "_rfm_gettests")
        if old_syntax and new_syntax:
            raise TestLoadError("%s: mixing old and new regression test "
                                "syntax is not allowed" % module.__file__)

        if not old_syntax and not new_syntax:
            return []

        if old_syntax:
            candidates = module._get_checks()
        else:
            candidates = module._rfm_gettests()

        if not isinstance(candidates, collections.abc.Sequence):
            return []

        ret = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: eth-cscs/reframe
Commit Name: a232b0996ee6043f4a1bcd51b48013680dfa7172
Time: 2018-04-29
Author: karakasis@cscs.ch
File Name: reframe/frontend/loader.py
Class Name: RegressionCheckLoader
Method Name: load_from_module


Project Name: theislab/scanpy
Commit Name: b3505e7e9e08a389dfff5788db2b6634abdeb1cd
Time: 2019-06-05
Author: flying-sheep@web.de
File Name: scanpy/_settings.py
Class Name: ScanpyConfig
Method Name: logfile


Project Name: havakv/pycox
Commit Name: 6edcb869c11b5b058a084106ec032fcaf31a239f
Time: 2019-10-03
Author: haavard.kvamme@gmail..com
File Name: pycox/preprocessing/discretization.py
Class Name:
Method Name: make_cuts