59ca2fde6950e736520e40461c24bba9e13adaa9,lib/tests/streamlit/watcher/LocalSourcesWatcher_test.py,LocalSourcesWatcherTest,setUp,#LocalSourcesWatcherTest#,46

Before Change



class LocalSourcesWatcherTest(unittest.TestCase):
    def setUp(self):
        try:
            del sys.modules[DUMMY_MODULE_1.__name__]
        except:
            pass

        try:
            del sys.modules[DUMMY_MODULE_2.__name__]
        except:
            pass

After Change


            "DUMMY_MODULE_1", "DUMMY_MODULE_2", "MISBEHAVED_MODULE",
        ]

        the_globals = globals()

        for name in modules:
            try:
                del sys.modules[the_globals[name].__name__]
            except:
                pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 59ca2fde6950e736520e40461c24bba9e13adaa9
Time: 2019-06-21
Author: thiago@streamlit.io
File Name: lib/tests/streamlit/watcher/LocalSourcesWatcher_test.py
Class Name: LocalSourcesWatcherTest
Method Name: setUp


Project Name: pysb/pysb
Commit Name: 07fbf7dd9ea307be88af54ee0f16407e51d1280e
Time: 2015-09-25
Author: code@alexlubbock.com
File Name: pysb/tests/test_util.py
Class Name:
Method Name: test_alias_model_components


Project Name: streamlit/streamlit
Commit Name: 0f65b0232077bf3f00fa4405d7412094dfd2a33a
Time: 2019-07-02
Author: thiago@streamlit.io
File Name: lib/tests/streamlit/watcher/LocalSourcesWatcher_test.py
Class Name: LocalSourcesWatcherTest
Method Name: setUp