tests/profiles/universal_test.py defines many functions two times
See original GitHub issueObserved behaviour
I just made a commit 0e43ce5 for #2622 and found that there were (and still are!) two identical definitions of the same test function. With pylint
(output below) I found out that there are 10 functions defined two times.
Expected behaviour
There should be only one definition for each test function.
Resources and exact process needed to replicate
fontbakery> pylint tests/profiles/* | grep "E0102"
tests/profiles/universal_test.py:527:0: E0102: function already defined line 48 (function-redefined)
tests/profiles/universal_test.py:547:0: E0102: function already defined line 68 (function-redefined)
tests/profiles/universal_test.py:563:0: E0102: function already defined line 84 (function-redefined)
tests/profiles/universal_test.py:575:0: E0102: function already defined line 96 (function-redefined)
tests/profiles/universal_test.py:590:0: E0102: function already defined line 111 (function-redefined)
tests/profiles/universal_test.py:607:0: E0102: function already defined line 128 (function-redefined)
tests/profiles/universal_test.py:645:0: E0102: function already defined line 166 (function-redefined)
tests/profiles/universal_test.py:691:0: E0102: function already defined line 212 (function-redefined)
tests/profiles/universal_test.py:718:0: E0102: function already defined line 239 (function-redefined)
tests/profiles/universal_test.py:786:0: E0102: function already defined line 307 (function-redefined)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Write Functions with Multiple Parameters in Python
Begin by defining the function with a descriptive name and the two necessary parameters: the input array with values in millimeters; the axis ......
Read more >How do I call a function twice or more times consecutively?
The method combines the following two ideas: calling the iter() built-in function with the optional sentinel argument, and.
Read more >Writing Functions in Python.txt - GitHub
We've defined four functions: mean(), std(), minimum(), and maximum() that users can call to analyze their data.
Read more >How to pass multiple arguments to function ? - GeeksforGeeks
We can pass multiple arguments to a python function by predetermining the formal parameters in the function definition. Python. Python ...
Read more >Python Functions: How to Call & Write Functions - DataCamp
In this tutorial, you'll learn all about Python functions. Follow steps to learn how to write and call functions in Python. Find code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
well… actually today.
I will fix this mess today!!! 😄