Skip to content

Commit d95b5bb

Browse files
committed
remove wrong filter in trace module
1 parent 5e2c784 commit d95b5bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_trace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
def test_trace_module():
4242
import trace
4343
import sys
44+
import platform
4445

4546
tracer = trace.Trace(ignoredirs=[], trace=1, count=1, countfuncs=1, countcallers=1)
4647

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/TraceModuleBuiltins.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,9 @@ PNone doit(PythonModule mod, Object count, Object countfuncs, PSequence ignoremo
115115
SourceSectionFilter.Builder filter = SourceSectionFilter.newBuilder();
116116
filter.includeInternal(false).mimeTypeIs(PythonLanguage.MIME_TYPE);
117117
PythonContext context = getContext();
118-
TruffleString stdLibHome = context.getStdlibHome();
119118
filter.sourceIs((src) -> {
120119
String path = src.getPath();
121-
return path != null && !path.contains(stdLibHome.toJavaStringUncached());
120+
return path != null;
122121
});
123122

124123
Object[] ignoreMods = toArray.execute(getStore.execute(ignoremods));

0 commit comments

Comments
 (0)