Skip to content

Commit d8fccff

Browse files
test: xfail v1 UNI-exchange price-output cases (no liquidity)
Same fix as #479 — the v1 UNI exchange has no remaining liquidity so get_price_output raises EVM error InvalidJump on mainnet fork. Git-Session-Id: 8f77
1 parent ec22cd4 commit d8fccff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/test_uniswap.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def test_get_price_input(self, client: Uniswap, tokens, token0, token1, qty):
195195
],
196196
)
197197
def test_get_price_output(self, client: Uniswap, tokens, token0, token1, qty):
198+
if client.version == 1 and "UNI" in (token0, token1):
199+
pytest.xfail("Uniswap v1 UNI exchange has no liquidity — InvalidJump")
198200
token0, token1 = tokens[token0], tokens[token1]
199201
if client.version == 1 and ETH_ADDRESS not in [token0, token1]:
200202
pytest.skip("Not supported in this version of Uniswap")

0 commit comments

Comments
 (0)