diff --git a/src/wormhole/cli/welcome.py b/src/wormhole/cli/welcome.py index f763eae..50a60a4 100644 --- a/src/wormhole/cli/welcome.py +++ b/src/wormhole/cli/welcome.py @@ -10,9 +10,9 @@ class CLIWelcomeHandler(_WelcomeHandler): def handle_welcome(self, welcome): # Only warn if we're running a release version (e.g. 0.0.6, not - # 0.0.6-DISTANCE-gHASH). Only warn once. + # 0.0.6+DISTANCE.gHASH). Only warn once. if ("current_cli_version" in welcome - and "-" not in self._current_version + and "+" not in self._current_version and not self._version_warning_displayed and welcome["current_cli_version"] != self._current_version): print("Warning: errors may occur unless both sides are running the same version", file=self.stderr) diff --git a/src/wormhole/test/test_cli.py b/src/wormhole/test/test_cli.py index fb8fd10..086f18c 100644 --- a/src/wormhole/test/test_cli.py +++ b/src/wormhole/test/test_cli.py @@ -932,7 +932,7 @@ class Welcome(unittest.TestCase): def test_version_unreleased(self): stderr = self.do({"current_cli_version": "3.0"}, - my_version="2.5-middle-something") + my_version="2.5+middle.something") self.assertEqual(stderr, "") def test_motd(self):