yinwang0 / pysonar2

PySonar2: a semantic indexer for Python with interprocedual type inference

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test failures on imports tests

matanox opened this issue · comments

I am getting the following errors when running mvn test or mvn package:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.yinwang.pysonar.TestRefs
Verifying tests:
 - tests/relative-import.test
     * Missing reference from foo:0:0 to foo/__init__.py:foo:0:0
     * Missing reference from bar:0:0 to foo/bar.py:bar:0:0
     * Missing reference from f:0:0 to foo/bar.py:f:1:5
     * Missing reference from f:3:5 to foo/bar.py:f:1:5
     * Missing reference from y:4:7 to y:3:1
 - tests/branch.test
     * Missing reference from x:6:8 to x:4:11
     * Missing reference from a:8:11 to a:5:5
     * Missing reference from a:8:11 to a:7:9
     * Missing reference from x:13:8 to x:11:11
     * Missing reference from a:17:11 to a:14:9
     * Missing reference from a:17:11 to a:16:9
     * Missing reference from x:22:8 to x:20:11
     * Missing reference from x:25:12 to x:20:11
     * Missing reference from a:29:11 to a:23:9
     * Missing reference from a:29:11 to a:26:13
     * Missing reference from a:29:11 to a:28:13
     * Missing reference from x:35:8 to x:32:11
     * Missing reference from x:39:12 to x:32:11
     * Missing reference from a:44:11 to a:33:5
     * Missing reference from a:44:11 to a:36:9
     * Missing reference from a:44:11 to a:42:13
     * Missing reference from b:44:14 to b:37:9
     * Missing reference from b:44:14 to b:40:13
     * Missing reference from b:44:14 to b:43:13

Version information

  • $PYTHONPACKAGE is set to a python 3.8.3 interpreter.
  • Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
  • mvn version:
Java version: 1.8.0_202, vendor: Oracle Corporation, runtime: /home/matan/jdk1.8.0_202/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-97-generic", arch: "amd64", family: "unix"

as I understand, building with maven is the recommended way to use this project. I must be missing something obvious but would appreciate your help pointing me at the right direction!

Thanks for maintaining this great package!

I just tried and didn't reproduce the problem. You may try build with -DskipTests and see if it works for actual projects.