From dd41775059ec8d55b48afe042634e179fc151491 Mon Sep 17 00:00:00 2001 From: Yanghello Date: Thu, 26 Nov 2020 15:53:56 +0800 Subject: [PATCH] fix crypto ut test error for windows ci (#29090) --- python/paddle/fluid/tests/unittests/test_crypto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_crypto.py b/python/paddle/fluid/tests/unittests/test_crypto.py index 69b8db778eb..2a9bed7acbb 100644 --- a/python/paddle/fluid/tests/unittests/test_crypto.py +++ b/python/paddle/fluid/tests/unittests/test_crypto.py @@ -22,9 +22,9 @@ import unittest class CipherUtilsTestCase(unittest.TestCase): def test_gen_key(self): key1 = CipherUtils.gen_key(256) - key2 = CipherUtils.gen_key_to_file(256, "/tmp/paddle_aes_test.keyfile") + key2 = CipherUtils.gen_key_to_file(256, "paddle_aes_test.keyfile") self.assertNotEquals(key1, key2) - key3 = CipherUtils.read_key_from_file("/tmp/paddle_aes_test.keyfile") + key3 = CipherUtils.read_key_from_file("paddle_aes_test.keyfile") self.assertEqual(key2, key3) self.assertEqual(len(key1), 32) self.assertEqual(len(key2), 32) -- GitLab