just skip case of distribute on windows (#25581)

just skip case of distribute on windows
fix_copy_if_different
Zhou Wei 5 years ago committed by GitHub
parent bbe8f7bdcd
commit f8ec5f0fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,11 +59,9 @@ if(WIN32)
# TODO: Fix these unittests failed on Windows
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_merge_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_math_op_patch_var_base)
endif()

@ -18,6 +18,7 @@ import numpy as np
import argparse
import time
import math
import sys
import paddle
import paddle.fluid as fluid
@ -177,6 +178,8 @@ def program_equal(a, b):
class TestDistMnist(unittest.TestCase):
@unittest.skipIf(sys.platform == "win32",
"Windows does not support distribution")
def test_desc_clone(self):
get_model(batch_size=20)

@ -15,6 +15,7 @@
import os
import time
import unittest
import sys
from multiprocessing import Process
import signal
@ -29,6 +30,8 @@ import paddle.fluid.layers.ops as ops
class TestProgram2Code(unittest.TestCase):
@unittest.skipIf(sys.platform == "win32",
"Windows does not support distribution")
def test_print(self):
place = fluid.CPUPlace()
self.init_serv(place)

Loading…
Cancel
Save