Skip to content
Snippets Groups Projects
Commit aea11a3b authored by Zbigniew Jędrzejewski-Szmek's avatar Zbigniew Jędrzejewski-Szmek
Browse files

Fix reverted logic in assert_diff_startswith()

With this change, tests actually pass with python 3.10
(python3-3.10.0-1.fc35.x86_64).
parent e24ee480
Branches
Tags debian/1.2.2-2
1 merge request!92Fix reverted logic in assert_diff_startswith()
Pipeline #311291 passed
...@@ -67,7 +67,7 @@ def assert_diff(difference, filename): ...@@ -67,7 +67,7 @@ def assert_diff(difference, filename):
def assert_diff_startswith(difference, filename): def assert_diff_startswith(difference, filename):
haystack = difference.unified_diff haystack = difference.unified_diff
needle = get_data(filename) needle = get_data(filename)
assert needle.startswith(haystack) assert haystack.startswith(needle)
# https://code.activestate.com/recipes/576620-changedirectory-context-manager/#c3 # https://code.activestate.com/recipes/576620-changedirectory-context-manager/#c3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment