pentoo-overlay/dev-python/promise/files/promise-2.3.0_fix-test.patch
2025-05-15 13:55:37 +02:00

23 lines
682 B
Diff

Patch bad attribute
Fix by rick <rick@gnous.eu>
--- a/tests/test_extra.py
+++ b/tests/test_extra.py
@@ -113,7 +113,7 @@ def test_thrown_exceptions_have_stacktrace():
with raises(AssertionError) as assert_exc:
p3.get()
- assert assert_exc.traceback[-1].path.strpath == __file__
+ assert str(assert_exc.traceback[-1].path) == __file__
def test_thrown_exceptions_preserve_stacktrace():
@@ -127,7 +127,7 @@ def test_thrown_exceptions_preserve_stacktrace():
with raises(AssertionError) as assert_exc:
p3.get()
- assert assert_exc.traceback[-1].path.strpath == __file__
+ assert str(assert_exc.traceback[-1].path) == __file__
# WAIT