Skip to content

Commit 34ed8b5

Browse files
committed
work around pylint bug
1 parent 9b08bd2 commit 34ed8b5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mx_benchmark.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,17 @@ def run_java(self, args, out=None, err=None, cwd=None, nonZeroIsFatal=False):
712712
mx.get_jdk().run_java(args, out=out, err=out, cwd=cwd, nonZeroIsFatal=False)
713713

714714

715+
class DummyJavaVm(OutputCapturingJavaVm):
716+
"""
717+
Dummy VM to work around: "pylint #111138 disabling R0921 does'nt work"
718+
https://www.logilab.org/ticket/111138
719+
720+
Note that the warning R0921 (abstract-class-little-used) has been removed
721+
from pylint 1.4.3.
722+
"""
723+
pass
724+
725+
715726
def add_java_vm(javavm):
716727
key = (javavm.name(), javavm.config_name())
717728
if key in _bm_suite_java_vms:

0 commit comments

Comments
 (0)