File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 44# This source code is licensed under the BSD-style license found in the
55# LICENSE file in the root directory of this source tree.
66
7+ import os
78from logging import getLogger
89
910import pytest
1415
1516logger = getLogger (__name__ )
1617
18+ import pytest
19+
20+
21+ def slow_tests_enabled ():
22+ return os .environ .get ("TORCHSTORE_ENABLE_SLOW_TESTS" , "0" ) == "1"
23+
24+
25+ requires_slow_tests_enabled = pytest .mark .skipif (
26+ not slow_tests_enabled (),
27+ reason = "Slow tests are disabled by default, use TORCHSTORE_ENABLE_SLOW_TESTS=1 to enable them" ,
28+ )
29+
1730
1831@pytest .mark .parametrize (* transport_plus_strategy_params ())
1932@pytest .mark .parametrize (
@@ -53,6 +66,7 @@ async def test_1d_resharding(
5366 )
5467
5568
69+ @requires_slow_tests_enabled
5670@pytest .mark .parametrize (* transport_plus_strategy_params ())
5771@pytest .mark .asyncio
5872async def test_2d_to_2d_resharding (strategy_params , use_rdma ):
You can’t perform that action at this time.
0 commit comments