message: show as skipped if not testing pathlib
diff: @@ -73,7 +73,8 @@ class TestSaveModel(test.TestCase, parameterized.TestCase):
  @test_util.run_v2_only
  def test_save_format_defaults_pathlib(self):
  - if sys.version_info >= (3, 6):
  + if sys.version_info < (3, 6):
  + self.skipTest('pathlib is only available for python version >= 3.6')
  path = pathlib.Path(self.get_temp_dir()) / 'model_path'
  save.save_model(self.model, path)
  self.assert_saved_model(path)
  @@ -90,7 +91,8 @@ class TestSaveModel(test.TestCase, parameterized.TestCase):
  @test_util.run_v2_only
  def test_save_load_hdf5_pathlib(self):
  - if sys.version_info >= (3, 6):
  + if sys.version_info < (3, 6):
  + self.skipTest('pathlib is only available for python version >= 3.6')
  path = pathlib.Path(self.get_temp_dir()) / 'model'
  save.save_model(self.model, path, save_format='h5')
  save.load_model(path)
  @@ -114,21 +116,24 @@ class TestSaveModel(test.TestCase, parameterized.TestCase):
  @test_util.run_v2_only
  def test_save_load_tf_pathlib(self):
  - if sys.version_info >= (3, 6):
  + if sys.version_info < (3, 6):
  + self.skipTest('pathlib is only available for python version >= 3.6')
  path = pathlib.Path(self.get_temp_dir()) / 'model'
  save.save_model(self.model, path, save_format='tf')
  save.load_model(path)
  @test_util.run_v2_only
  def test_save_load_weights_tf_pathlib(self):
  - if sys.version_info >= (3, 6):
  + if sys.version_info < (3, 6):
  + self.skipTest('pathlib is only available for python version >= 3.6')
  path = pathlib.Path(self.get_temp_dir()) / 'model'
  self.model.save_weights(path, save_format='tf')
  self.model.load_weights(path)
  @test_util.run_v2_only
  def test_save_load_weights_hdf5_pathlib(self):
  - if sys.version_info >= (3, 6):
  + if sys.version_info < (3, 6):
  + self.skipTest('pathlib is only available for python version >= 3.6')
  path = pathlib.Path(self.get_temp_dir()) / 'model'
  self.model.save_weights(path, save_format='h5')
  self.model.load_weights(path)
  