message: Move skipping of test_session to setUp(), so child tests will also skip setUp(), which can be expensive.
diff: @@ -1430,6 +1430,10 @@ class TensorFlowTestCase(googletest.TestCase):
  ops.reset_default_graph()
  random_seed.set_random_seed(random_seed.DEFAULT_GRAPH_SEED)
  + # Avoiding calling setUp() for the poorly named test_session method.
  + if self.id().endswith(".test_session"):
  + self.skipTest("Not a test.")
  +
  def tearDown(self):
  for thread in self._threads:
  thread.check_termination()
  @@ -1713,9 +1717,6 @@ class TensorFlowTestCase(googletest.TestCase):
  use_gpu=False,
  force_gpu=False):
  """Use cached_session instead."""
  - if self.id().endswith(".test_session"):
  - self.skipTest("Not a test.")
  -
  if context.executing_eagerly():
  yield None
  else:
  