Skip to content

Commit 1f82f23

Browse files
committed
Skip long callback tests on python 3.6
1 parent 992a8ab commit 1f82f23

16 files changed

+97
-0
lines changed

Diff for: tests/integration/long_callback/test_basic_long_callback001.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import sys
12
from multiprocessing import Lock
23

4+
import pytest
35
from flaky import flaky
46

57
from .utils import setup_long_callback_app
68

79

10+
@pytest.mark.skipif(
11+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
12+
)
813
@flaky(max_runs=3)
914
def test_lcbc001_fast_input(dash_duo, manager):
1015
"""

Diff for: tests/integration/long_callback/test_basic_long_callback002.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
2+
3+
import pytest
14
from flaky import flaky
25

36
from tests.integration.long_callback.utils import setup_long_callback_app
47

58

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
612
@flaky(max_runs=3)
713
def test_lcbc002_long_callback_running(dash_duo, manager):
814
with setup_long_callback_app(manager, "app2") as app:

Diff for: tests/integration/long_callback/test_basic_long_callback003.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import sys
12
from multiprocessing import Lock
23

4+
import pytest
35
from flaky import flaky
46

57
from tests.integration.long_callback.utils import setup_long_callback_app
68

79

10+
@pytest.mark.skipif(
11+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
12+
)
813
@flaky(max_runs=3)
914
def test_lcbc003_long_callback_running_cancel(dash_duo, manager):
1015
lock = Lock()

Diff for: tests/integration/long_callback/test_basic_long_callback004.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
2+
3+
import pytest
14
from flaky import flaky
25

36
from tests.integration.long_callback.utils import setup_long_callback_app
47

58

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
612
@flaky(max_runs=3)
713
def test_lcbc004_long_callback_progress(dash_duo, manager):
814
with setup_long_callback_app(manager, "app4") as app:

Diff for: tests/integration/long_callback/test_basic_long_callback005.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import sys
12
from multiprocessing import Lock
23

34
import pytest
45

56
from tests.integration.long_callback.utils import setup_long_callback_app
67

78

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
812
@pytest.mark.skip(reason="Timeout often")
913
def test_lcbc005_long_callback_caching(dash_duo, manager):
1014
lock = Lock()

Diff for: tests/integration/long_callback/test_basic_long_callback006.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import sys
12
from multiprocessing import Lock
23

4+
import pytest
35
from flaky import flaky
46

57
from tests.integration.long_callback.utils import setup_long_callback_app
68

79

10+
@pytest.mark.skipif(
11+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
12+
)
813
@flaky(max_runs=3)
914
def test_lcbc006_long_callback_caching_multi(dash_duo, manager):
1015
lock = Lock()

Diff for: tests/integration/long_callback/test_basic_long_callback007.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
2+
3+
import pytest
14
from flaky import flaky
25

36
from tests.integration.long_callback.utils import setup_long_callback_app
47

58

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
612
@flaky(max_runs=3)
713
def test_lcbc007_validation_layout(dash_duo, manager):
814
with setup_long_callback_app(manager, "app7") as app:

Diff for: tests/integration/long_callback/test_basic_long_callback008.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
3+
import pytest
4+
15
from tests.integration.long_callback.utils import setup_long_callback_app
26

37

8+
@pytest.mark.skipif(
9+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
10+
)
411
def test_lcbc008_long_callbacks_error(dash_duo, manager):
512
with setup_long_callback_app(manager, "app_error") as app:
613
dash_duo.start_server(

Diff for: tests/integration/long_callback/test_basic_long_callback009.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
12
import time
23

4+
import pytest
5+
36
from tests.integration.long_callback.utils import setup_long_callback_app
47

58

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
612
def test_lcbc009_short_interval(dash_duo, manager):
713
with setup_long_callback_app(manager, "app_short_interval") as app:
814
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback010.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
3+
import pytest
4+
15
from tests.integration.long_callback.utils import setup_long_callback_app
26

37

8+
@pytest.mark.skipif(
9+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
10+
)
411
def test_lcbc010_side_updates(dash_duo, manager):
512
with setup_long_callback_app(manager, "app_side_update") as app:
613
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback011.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
3+
import pytest
4+
15
from tests.integration.long_callback.utils import setup_long_callback_app
26

37

8+
@pytest.mark.skipif(
9+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
10+
)
411
def test_lcbc011_long_pattern_matching(dash_duo, manager):
512
with setup_long_callback_app(manager, "app_pattern_matching") as app:
613
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback012.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import json
2+
import sys
3+
4+
import pytest
25

36
from tests.integration.long_callback.utils import setup_long_callback_app
47

58

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
612
def test_lcbc012_long_callback_ctx(dash_duo, manager):
713
with setup_long_callback_app(manager, "app_callback_ctx") as app:
814
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback013.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
3+
import pytest
4+
15
from tests.integration.long_callback.utils import setup_long_callback_app
26

37

8+
@pytest.mark.skipif(
9+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
10+
)
411
def test_lcbc013_unordered_state_input(dash_duo, manager):
512
with setup_long_callback_app(manager, "app_unordered") as app:
613
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback014.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
3+
import pytest
4+
15
from tests.integration.long_callback.utils import setup_long_callback_app
26

37

8+
@pytest.mark.skipif(
9+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
10+
)
411
def test_lcbc014_progress_delete(dash_duo, manager):
512
with setup_long_callback_app(manager, "app_progress_delete") as app:
613
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback015.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import sys
2+
3+
import pytest
4+
15
from tests.integration.long_callback.utils import setup_long_callback_app
26

37

8+
@pytest.mark.skipif(
9+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
10+
)
411
def test_lcbc015_diff_outputs_same_func(dash_duo, manager):
512
with setup_long_callback_app(manager, "app_diff_outputs") as app:
613
dash_duo.start_server(app)

Diff for: tests/integration/long_callback/test_basic_long_callback016.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
12
import time
23

4+
import pytest
5+
36
from tests.integration.long_callback.utils import setup_long_callback_app
47

58

9+
@pytest.mark.skipif(
10+
sys.version_info < (3, 7), reason="Python 3.6 long callbacks tests hangs up"
11+
)
612
def test_lcbc016_multi_page_cancel(dash_duo, manager):
713
with setup_long_callback_app(manager, "app_page_cancel") as app:
814
dash_duo.start_server(app)

0 commit comments

Comments
 (0)