Use path.join to make sure that the test passes on windows as well.

PiperOrigin-RevId: 306872344
Change-Id: I156c1e0268000bb47900cd933dbef7b8b30f46bd
This commit is contained in:
Akshay Modi 2020-04-16 10:21:19 -07:00 committed by TensorFlower Gardener
parent 09c23dd1b2
commit 5c306c4d40
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class DistributedFileUtilsTest(test.TestCase):
strategy = DistributedFileUtilsTest.MockedWorkerStrategy() strategy = DistributedFileUtilsTest.MockedWorkerStrategy()
self.assertEqual( self.assertEqual(
distributed_file_utils.write_filepath(filepath, strategy), distributed_file_utils.write_filepath(filepath, strategy),
os.path.join(dirpath, 'workertemp_3/foo.bar')) os.path.join(dirpath, 'workertemp_3', 'foo.bar'))
self.assertEqual( self.assertEqual(
distributed_file_utils.write_dirpath(dirpath, strategy), distributed_file_utils.write_dirpath(dirpath, strategy),
os.path.join(dirpath, 'workertemp_3')) os.path.join(dirpath, 'workertemp_3'))