Repository: tmux-python/libtmux (language: python)

Issue:
Update `TMUX_MAX_VERSION`, add 3.3a to CI
- CI: Add tmux 3.3a to test suite
- Set `TMUX_MAX_VERSION`: 2.4 -> 3.3


Discussion / hints:

Fix patch:
diff --git a/CHANGES b/CHANGES
index 7df12dc5d..a83bdcef4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -15,6 +15,13 @@ $ pip install --user --upgrade --pre libtmux
 ## Compatibility
 
 - Brought back python 3.7 and 3.8 support ({issue}`375`)
+- Support for tmux 3.3a
+
+  - Add to CI
+  - Bump `TMUX_MAX_VERSION` from 2.4 -> 3.3
+
+    _2.4 to 3.3a already worked, this is just the constant
+    being updated._
 
 ### Development
 
diff --git a/libtmux/common.py b/libtmux/common.py
index 05b85229f..16ff55e88 100644
--- a/libtmux/common.py
+++ b/libtmux/common.py
@@ -24,7 +24,7 @@
 TMUX_MIN_VERSION = "1.8"
 
 #: Most recent version of tmux supported
-TMUX_MAX_VERSION = "2.4"
+TMUX_MAX_VERSION = "3.3"
 
 SessionDict = t.Dict[str, t.Any]
 WindowDict = t.Dict[str, t.Any]


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 3bb0f1f8c..3b653af84 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -11,7 +11,7 @@ jobs:
     strategy:
       matrix:
         python-version: ["3.7", "3.10"]
-        tmux-version: ["2.6", "2.7", "2.8", "3.0a", "3.1b", "3.2a", "master"]
+        tmux-version: ["2.6", "2.7", "2.8", "3.0a", "3.1b", "3.2a", "3.3a", "master"]
     steps:
       - uses: actions/checkout@v3
 
diff --git a/tests/test_common.py b/tests/test_common.py
index 1694d3b0b..cee74d185 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -46,9 +46,11 @@ class Hi:
 
 
 def test_allows_next_version(monkeypatch):
+    TMUX_NEXT_VERSION = str(float(TMUX_MAX_VERSION) + 0.1)
+
     def mock_tmux_cmd(param):
         class Hi:
-            stdout = ["tmux next-2.9"]
+            stdout = [f"tmux next-{TMUX_NEXT_VERSION}"]
             stderr = None
 
         return Hi()
@@ -58,7 +60,7 @@ class Hi:
     assert has_minimum_version()
     assert has_gte_version(TMUX_MIN_VERSION)
     assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
-    assert "2.9" == get_version()
+    assert TMUX_NEXT_VERSION == get_version()
 
 
 def test_get_version_openbsd(monkeypatch):