Internal change

PiperOrigin-RevId: 499351795
This commit is contained in:
MediaPipe Team 2023-01-03 17:18:59 -08:00 committed by Copybara-Service
parent e7dc989f71
commit add5600d0d
2 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class TextClassifierTest(tf.test.TestCase):
self.assertTrue(os.path.exists(output_metadata_file)) self.assertTrue(os.path.exists(output_metadata_file))
self.assertGreater(os.path.getsize(output_metadata_file), 0) self.assertGreater(os.path.getsize(output_metadata_file), 0)
filecmp.clear_cache()
self.assertTrue( self.assertTrue(
filecmp.cmp( filecmp.cmp(
output_metadata_file, output_metadata_file,

View File

@ -135,6 +135,7 @@ class ImageClassifierTest(tf.test.TestCase, parameterized.TestCase):
self.assertTrue(os.path.exists(output_metadata_file)) self.assertTrue(os.path.exists(output_metadata_file))
self.assertGreater(os.path.getsize(output_metadata_file), 0) self.assertGreater(os.path.getsize(output_metadata_file), 0)
filecmp.clear_cache()
self.assertTrue( self.assertTrue(
filecmp.cmp( filecmp.cmp(
output_metadata_file, expected_metadata_file, shallow=False)) output_metadata_file, expected_metadata_file, shallow=False))