branch: externals/pyim
commit 69c0f0ee062215c34b47de4f306649bc50ad79f5
Author: Feng Shu <tuma...@163.com>
Commit: Feng Shu <tuma...@163.com>

    * tests/pyim-tests.el (pyim-tests-pyim-import-words-and-counts): Try to fix 
this test.
---
 tests/pyim-tests.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index c75fb31..f0cf90a 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -566,9 +566,9 @@
 
 ;; ** pyim-import 相关单元测试
 (ert-deftest pyim-tests-pyim-import-words-and-counts ()
-  ;; 这个测试目前主要用于手工测试,在 github 上这个测试无法通过的。
-  :expected-result :failed
-  (let ((file (make-temp-file "pyim-tests-import")))
+  (let ((pyim-dcache-directory
+         (file-name-as-directory (make-temp-name "pyim-dcache-")))
+        (file (make-temp-file "pyim-tests-import")))
     ;; 删除测试用词条
     (dolist (x '("测㤅" "测嘊" "测伌"))
       (pyim-process-delete-word x))

Reply via email to