question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tests/profiles/universal_test.py defines many functions two times

See original GitHub issue

Observed 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
felipesanchescommented, Sep 14, 2019

well… actually today.

0reactions
felipesanchescommented, Sep 13, 2019

I will fix this mess today!!! 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found