From cd417a46340fa0b7ecaf7fa11fd772b9518f10fc Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Fri, 15 Mar 2019 14:42:18 +0100 Subject: [PATCH] [test][prefix] Silence correctly warnings on files used for bad behaviour tests --- beat/core/test/prefix/algorithms/user/integers_crash/1.py | 3 +++ .../test/prefix/algorithms/user/integers_echo_error/1.py | 3 +++ beat/core/test/prefix/algorithms/user/syntax_error/1.py | 2 ++ beat/core/test/prefix/databases/invalid/1.py | 5 ++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/beat/core/test/prefix/algorithms/user/integers_crash/1.py b/beat/core/test/prefix/algorithms/user/integers_crash/1.py index bec1160e..c27c3d1a 100644 --- a/beat/core/test/prefix/algorithms/user/integers_crash/1.py +++ b/beat/core/test/prefix/algorithms/user/integers_crash/1.py @@ -34,6 +34,9 @@ ################################################################################### +# flake8: noqa code must trigger a crash + + class Algorithm: def process(self, inputs, outputs): a = b diff --git a/beat/core/test/prefix/algorithms/user/integers_echo_error/1.py b/beat/core/test/prefix/algorithms/user/integers_echo_error/1.py index b467d5c3..baff8799 100644 --- a/beat/core/test/prefix/algorithms/user/integers_echo_error/1.py +++ b/beat/core/test/prefix/algorithms/user/integers_echo_error/1.py @@ -34,6 +34,9 @@ ################################################################################### +# flake8: noqa + + class Algorithm: def process(self, inputs, outputs): error # this error is here on testing purposes diff --git a/beat/core/test/prefix/algorithms/user/syntax_error/1.py b/beat/core/test/prefix/algorithms/user/syntax_error/1.py index d8e3892a..336f195b 100644 --- a/beat/core/test/prefix/algorithms/user/syntax_error/1.py +++ b/beat/core/test/prefix/algorithms/user/syntax_error/1.py @@ -34,7 +34,9 @@ ################################################################################### +# flake8: noqa # The following line will produce a SyntaxError + class Algorithm; def process(self, inputs, outputs): diff --git a/beat/core/test/prefix/databases/invalid/1.py b/beat/core/test/prefix/databases/invalid/1.py index 52513766..89e5e351 100644 --- a/beat/core/test/prefix/databases/invalid/1.py +++ b/beat/core/test/prefix/databases/invalid/1.py @@ -34,5 +34,8 @@ ################################################################################### +# flake8: noqa + class View; # <-- syntax error! - def next(self): return True + def next(self): + return True -- GitLab