f06f40b8766c02853a1c29a299af67dd058e7abb,tensorboard/plugins/audio/audio_plugin_test.py,AudioPluginTest,setUp,#AudioPluginTest#,44

Before Change


    // because we seek to block tests from running til after one reload finishes.
    // This setUp method thus manually reloads the multiplexer. TensorBoard would
    // otherwise reload in a non-blocking thread.
    wsgi_app = application.TensorBoardWSGIApp(
        self.log_dir, [self.plugin], multiplexer, reload_interval=-1,
        path_prefix="")
    self.server = werkzeug_test.Client(wsgi_app, wrappers.BaseResponse)
    multiplexer.Reload()

  def tearDown(self):

After Change


    context = base_plugin.TBContext(
        logdir=self.log_dir, multiplexer=multiplexer)
    self.plugin = audio_plugin.AudioPlugin(context)
    wsgi_app = application.TensorBoardWSGI([self.plugin])
    self.server = werkzeug_test.Client(wsgi_app, wrappers.BaseResponse)

  def tearDown(self):
    shutil.rmtree(self.log_dir, ignore_errors=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: tensorflow/tensorboard
Commit Name: f06f40b8766c02853a1c29a299af67dd058e7abb
Time: 2019-08-19
Author: nfelt@users.noreply.github.com
File Name: tensorboard/plugins/audio/audio_plugin_test.py
Class Name: AudioPluginTest
Method Name: setUp


Project Name: tensorflow/tensorboard
Commit Name: f06f40b8766c02853a1c29a299af67dd058e7abb
Time: 2019-08-19
Author: nfelt@users.noreply.github.com
File Name: tensorboard/plugins/image/images_plugin_test.py
Class Name: ImagesPluginTest
Method Name: setUp


Project Name: tensorflow/tensorboard
Commit Name: f06f40b8766c02853a1c29a299af67dd058e7abb
Time: 2019-08-19
Author: nfelt@users.noreply.github.com
File Name: tensorboard/plugins/debugger/interactive_debugger_plugin_test.py
Class Name: InteractiveDebuggerPluginTest
Method Name: setUp


Project Name: tensorflow/tensorboard
Commit Name: f06f40b8766c02853a1c29a299af67dd058e7abb
Time: 2019-08-19
Author: nfelt@users.noreply.github.com
File Name: tensorboard/plugins/mesh/mesh_plugin_test.py
Class Name: MeshPluginTest
Method Name: setUp