Skip to content

Commit

Permalink
test: use better path
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 27, 2025
1 parent 839d3df commit 7b2de7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_compile_source.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import tempfile
from pathlib import Path
from site import getsitepackages

import pytest
from packaging.version import Version
Expand All @@ -25,7 +25,10 @@ def test_compile_files(foo_path, vyper_version):
def test_compile_files_search_paths(foo_path, vyper_version):
if Version("0.4.0b1") <= vyper_version <= Version("0.4.0b5"):
pytest.skip("vyper 0.4.0b1 to 0.4.0b5 have a bug with combined_json")
output = vvm.compile_files([foo_path], search_paths=[Path.cwd(), *getsitepackages()])

with tempfile.TemporaryDirectory() as tmpdir:
output = vvm.compile_files([foo_path], search_paths=[Path.cwd(), tmpdir])

assert foo_path.as_posix() in output


Expand Down

0 comments on commit 7b2de7a

Please sign in to comment.