|
| 1 | +import sys |
1 | 2 | from dataclasses import dataclass
|
2 | 3 | from textwrap import dedent
|
3 | 4 | from typing import Any
|
@@ -1594,6 +1595,10 @@ def generate_primes():
|
1594 | 1595 | getlines.return_value = code.splitlines()
|
1595 | 1596 | assert compare(peak_allocations, press=[])
|
1596 | 1597 |
|
| 1598 | + @pytest.mark.skipif( |
| 1599 | + sys.version_info < (3, 8), |
| 1600 | + reason="This test requires Textual 0.48 or higher, which doesn't support 3.7", |
| 1601 | + ) |
1597 | 1602 | def test_basic_node_selected_not_leaf(self, compare):
|
1598 | 1603 | # GIVEN
|
1599 | 1604 | code = dedent(
|
@@ -1709,6 +1714,10 @@ def generate_primes():
|
1709 | 1714 | getlines.return_value = code.splitlines()
|
1710 | 1715 | assert compare(peak_allocations, press=[])
|
1711 | 1716 |
|
| 1717 | + @pytest.mark.skipif( |
| 1718 | + sys.version_info < (3, 8), |
| 1719 | + reason="This test requires Textual 0.48 or higher, which doesn't support 3.7", |
| 1720 | + ) |
1712 | 1721 | def test_two_chains_after_expanding_second(self, compare):
|
1713 | 1722 | # GIVEN
|
1714 | 1723 | code = dedent(
|
@@ -1909,6 +1918,10 @@ def generate_primes():
|
1909 | 1918 | getlines.return_value = code.splitlines()
|
1910 | 1919 | assert compare(peak_allocations, press=["u", "i"])
|
1911 | 1920 |
|
| 1921 | + @pytest.mark.skipif( |
| 1922 | + sys.version_info < (3, 8), |
| 1923 | + reason="This test requires Textual 0.48 or higher, which doesn't support 3.7", |
| 1924 | + ) |
1912 | 1925 | def test_select_screen(self, tmp_path, compare):
|
1913 | 1926 | # GIVEN
|
1914 | 1927 | code = dedent(
|
|
0 commit comments