From 5c306c4d4052c645f2c23d79f0c6e25043ee0f83 Mon Sep 17 00:00:00 2001 From: Akshay Modi Date: Thu, 16 Apr 2020 10:21:19 -0700 Subject: [PATCH] Use path.join to make sure that the test passes on windows as well. PiperOrigin-RevId: 306872344 Change-Id: I156c1e0268000bb47900cd933dbef7b8b30f46bd --- tensorflow/python/distribute/distributed_file_utils_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/distribute/distributed_file_utils_test.py b/tensorflow/python/distribute/distributed_file_utils_test.py index 92235b60d8d..3f68db999ce 100644 --- a/tensorflow/python/distribute/distributed_file_utils_test.py +++ b/tensorflow/python/distribute/distributed_file_utils_test.py @@ -67,7 +67,7 @@ class DistributedFileUtilsTest(test.TestCase): strategy = DistributedFileUtilsTest.MockedWorkerStrategy() self.assertEqual( 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( distributed_file_utils.write_dirpath(dirpath, strategy), os.path.join(dirpath, 'workertemp_3'))