未验证 提交 f8ec5f0f 编写于 作者: Z Zhou Wei 提交者: GitHub

just skip case of distribute on windows (#25581)

just skip case of distribute on windows
上级 bbe8f7bd
...@@ -59,11 +59,9 @@ if(WIN32) ...@@ -59,11 +59,9 @@ if(WIN32)
# TODO: Fix these unittests failed on Windows # TODO: Fix these unittests failed on Windows
LIST(REMOVE_ITEM TEST_OPS test_debugger) LIST(REMOVE_ITEM TEST_OPS test_debugger)
list(REMOVE_ITEM TEST_OPS test_desc_clone)
list(REMOVE_ITEM TEST_OPS test_fake_init_op) list(REMOVE_ITEM TEST_OPS test_fake_init_op)
list(REMOVE_ITEM TEST_OPS test_merge_ids_op) list(REMOVE_ITEM TEST_OPS test_merge_ids_op)
list(REMOVE_ITEM TEST_OPS test_split_ids_op) list(REMOVE_ITEM TEST_OPS test_split_ids_op)
list(REMOVE_ITEM TEST_OPS test_program_code)
LIST(REMOVE_ITEM TEST_OPS test_ref_by_trainer_id_op) LIST(REMOVE_ITEM TEST_OPS test_ref_by_trainer_id_op)
LIST(REMOVE_ITEM TEST_OPS test_math_op_patch_var_base) LIST(REMOVE_ITEM TEST_OPS test_math_op_patch_var_base)
endif() endif()
......
...@@ -18,6 +18,7 @@ import numpy as np ...@@ -18,6 +18,7 @@ import numpy as np
import argparse import argparse
import time import time
import math import math
import sys
import paddle import paddle
import paddle.fluid as fluid import paddle.fluid as fluid
...@@ -177,6 +178,8 @@ def program_equal(a, b): ...@@ -177,6 +178,8 @@ def program_equal(a, b):
class TestDistMnist(unittest.TestCase): class TestDistMnist(unittest.TestCase):
@unittest.skipIf(sys.platform == "win32",
"Windows does not support distribution")
def test_desc_clone(self): def test_desc_clone(self):
get_model(batch_size=20) get_model(batch_size=20)
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
import os import os
import time import time
import unittest import unittest
import sys
from multiprocessing import Process from multiprocessing import Process
import signal import signal
...@@ -29,6 +30,8 @@ import paddle.fluid.layers.ops as ops ...@@ -29,6 +30,8 @@ import paddle.fluid.layers.ops as ops
class TestProgram2Code(unittest.TestCase): class TestProgram2Code(unittest.TestCase):
@unittest.skipIf(sys.platform == "win32",
"Windows does not support distribution")
def test_print(self): def test_print(self):
place = fluid.CPUPlace() place = fluid.CPUPlace()
self.init_serv(place) self.init_serv(place)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册