26f4a69895c2e66303cacfeb369f0b9ac99290c2,tests/helpers/shellGuiTestCaseBase.py,ShellGuiTestCaseBase,setup_class,#Any#,131

Before Change


        if threading.current_thread().getName() == "MainThread":
            // Don"t run GUI tests in the main thread.
            sys.stderr.write( "NOSE WAS RUN FROM THE MAIN THREAD.  SKIPPING GUI TEST\n" )
            raise nose.SkipTest
        else:
            // We"re currently running in a non-main thread.
            // Start the gui IN THE MAIN THREAD.  Workflow is provided by our subclass.
            run_in_main_thread( createApp )

After Change


        // If test was run from the main thread, exit now.
        // If test is running in a non-main thread, we assume the main thread is available to launch the gui.
        if is_main_thread():
            pytest.xfail("Launched GUI test from MainThread. Skipping test.")
        // We"re currently running in a non-main thread.
        // Start the gui IN THE MAIN THREAD.  Workflow is provided by our subclass.
        run_in_main_thread( createApp )
        appCreationEvent.wait()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: ilastik/ilastik
Commit Name: 26f4a69895c2e66303cacfeb369f0b9ac99290c2
Time: 2018-11-19
Author: mnovikov.work@gmail.com
File Name: tests/helpers/shellGuiTestCaseBase.py
Class Name: ShellGuiTestCaseBase
Method Name: setup_class


Project Name: hyperspy/hyperspy
Commit Name: 2599f644bd4c5e637a5d3777f523d3e53ef662a9
Time: 2017-01-28
Author: frandelapena@gmail.com
File Name: hyperspy/tests/model/test_model.py
Class Name: TestModel1D
Method Name: test_notebook_interactions


Project Name: ilastik/ilastik
Commit Name: 26f4a69895c2e66303cacfeb369f0b9ac99290c2
Time: 2018-11-19
Author: mnovikov.work@gmail.com
File Name: tests/helpers/shellGuiTestCaseBase.py
Class Name: ShellGuiTestCaseBase
Method Name: teardown_class