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
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ def assert_diff(difference, filename):
def assert_diff_startswith(difference, filename):
    haystack = difference.unified_diff
    needle = get_data(filename)
    assert needle.startswith(haystack)
    assert haystack.startswith(needle)


# https://code.activestate.com/recipes/576620-changedirectory-context-manager/#c3