From 2a2293cafb6b322eb3329b5a7abd98435c56f361 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 7 Nov 2021 17:41:22 -0500 Subject: refactor(test): use the expected name for initializing tests. Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better. --- pylintrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pylintrc') diff --git a/pylintrc b/pylintrc index 0b1f9d7e..c295e4d0 100644 --- a/pylintrc +++ b/pylintrc @@ -148,7 +148,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme # TestCase overrides don't: setUp, tearDown # Nested decorator implementations: _decorator, _wrapper # Dispatched methods don't: _xxx__Xxxx -no-docstring-rgx=__.*__|test[A-Z_].*|setup_test|_decorator|_wrapper|_.*__.* +no-docstring-rgx=__.*__|test[A-Z_].*|setUp|_decorator|_wrapper|_.*__.* # Regular expression which should only match correct module names module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ @@ -236,7 +236,7 @@ additional-builtins= [CLASSES] # List of method names used to declare (i.e. assign) instance attributes. -defining-attr-methods=__init__,__new__,setup_test,reset +defining-attr-methods=__init__,__new__,setUp,reset # checks for sign of poor/misdesign: -- cgit v1.2.1