From ac81774aed83b4d7e4053aa21a7e4916491939cd Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 4 Jul 2020 15:44:08 -0700 Subject: [PATCH] Fix behave Python version test --- features/core.feature | 2 +- features/steps/core.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/features/core.feature b/features/core.feature index 99bcf5a5..53d37f8b 100644 --- a/features/core.feature +++ b/features/core.feature @@ -138,4 +138,4 @@ Feature: Basic reading and writing to a journal Scenario: Version warning appears for versions below 3.7 When we run "jrnl --diagnostic" - Then the Python version warning should appear if our version is below "3.7" + Then the Python version warning should appear if our version is below 3.7 diff --git a/features/steps/core.py b/features/steps/core.py index cbc1dbe7..5cf5b79b 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -381,10 +381,7 @@ def check_python_warning_if_version_low_enough(context, version): version ): out = context.stderr_capture.getvalue() - assert ( - "THIS SHOULD FAIL ON 3.6 REMOVE WHEN CONFIRMING - WARNING: Python versions" - in out - ) + assert "WARNING: Python versions" in out else: assert True