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:
parent
09c23dd1b2
commit
5c306c4d40
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue