From 1bbbe0d4acb4291f608f49b925c848404016a0fd Mon Sep 17 00:00:00 2001 From: He Sichao <1310722434@qq.com> Date: Fri, 22 Nov 2024 18:10:25 +0800 Subject: [PATCH] Skip test --- brainpy/_src/dnn/tests/test_activation.py | 5 ----- brainpy/_src/dnn/tests/test_conv_layers.py | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/brainpy/_src/dnn/tests/test_activation.py b/brainpy/_src/dnn/tests/test_activation.py index 78e7641d..51470641 100644 --- a/brainpy/_src/dnn/tests/test_activation.py +++ b/brainpy/_src/dnn/tests/test_activation.py @@ -1,13 +1,8 @@ -import platform - from absl.testing import absltest from absl.testing import parameterized import brainpy as bp import brainpy.math as bm -import pytest -if platform.system() == 'Darwin': - pytest.skip('skip Mac OS', allow_module_level=True) class Test_Activation(parameterized.TestCase): diff --git a/brainpy/_src/dnn/tests/test_conv_layers.py b/brainpy/_src/dnn/tests/test_conv_layers.py index 05f52362..af38a355 100644 --- a/brainpy/_src/dnn/tests/test_conv_layers.py +++ b/brainpy/_src/dnn/tests/test_conv_layers.py @@ -1,12 +1,17 @@ # -*- coding: utf-8 -*- +import platform import jax.numpy as jnp +import pytest from absl.testing import absltest from absl.testing import parameterized import brainpy as bp import brainpy.math as bm +if platform.system() == 'Darwin': + pytest.skip('skip Mac OS', allow_module_level=True) + class TestConv(parameterized.TestCase): def test_Conv2D_img(self):