Skip to content

Commit 0413f34

Browse files
committed
fix: fix testing issues
1 parent 1699ed9 commit 0413f34

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
pip install -r requirements-dev.txt
5858
5959
- name: Run tests
60-
run: pytest test_grammar.py -v
60+
run: PYTHONPATH=. pytest test_grammar.py -v
6161

6262
test-java:
6363
runs-on: ubuntu-latest

python/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
from python.main import get_tree
1+
try:
2+
from .main import get_tree
3+
except ImportError:
4+
pass

0 commit comments

Comments
 (0)