fdb8ed82b7323e0e6b8492f84c2aff78bc72c2e5,brian2/tests/__init__.py,,run,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,116

Before Change


            print("executing with", argv)
            pref_file.truncate(0)
            pref_file.write(prefs.as_file)
            pref_file.flush()
            success.append(pytest.main(argv, plugins=[pref_plugin]) == 0)
            // if "codegen_independent" in test_in_parallel:
            //     multiprocess._instantiate_plugins.remove(OurDoctestPlugin)
            clear_caches()

After Change


            // Some doctests do actually use code generation, use numpy for that
            prefs["codegen.target"] = "numpy"
            argv = make_argv(dirnames, doctests=True)
            if "codegen_independent" in test_in_parallel:
                argv.extend(multiprocess_arguments)
            success.append(pytest.main(argv, plugins=[pref_plugin]) == 0)

            print("Running tests that do not use code generation")
            argv = make_argv(dirnames, "codegen_independent")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: fdb8ed82b7323e0e6b8492f84c2aff78bc72c2e5
Time: 2019-11-04
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/__init__.py
Class Name:
Method Name: run


Project Name: lingpy/lingpy
Commit Name: 63627cf7c64e99fba9417b1c064d5703620028bc
Time: 2016-04-20
Author: mattis.list@uni-marburg.de
File Name: lingpy/data/ipa/sampa.py
Class Name:
Method Name:


Project Name: mynlp/ccg2lambda
Commit Name: b5c5ee14adc3d343ceb1f7510027b8965e1f9af4
Time: 2017-05-31
Author: pascual@nii.ac.jp
File Name: scripts/prove.py
Class Name:
Method Name: prove_doc_ind


Project Name: facebookresearch/pytext
Commit Name: 3b5102819bcf043dc4799ede1a4ae0b558aacb04
Time: 2020-07-09
Author: huaipan@fb.com
File Name: pytext/optimizer/sparsifiers/sparsifier.py
Class Name: SensitivityAnalysisSparsifier
Method Name: sensitivity_analysis


Project Name: ray-project/ray
Commit Name: 4572c6cf0f6f64fff261b5c27d87f40274861e9c
Time: 2021-03-02
Author: alex@anyscale.io
File Name: python/ray/autoscaler/_private/cli_logger.py
Class Name: _CliLogger
Method Name: _print