-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pytest warnings #3084
Fix pytest warnings #3084
Conversation
@@ -6,7 +6,7 @@ | |||
from tests.lib.tools import AgentTestCase, clear_singleton_instances | |||
|
|||
|
|||
class TestClassToTestSingletonPerThread(SingletonPerThread): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this, since pytest was identifying it as a Test class
@@ -156,8 +156,6 @@ def setUpClass(cls): | |||
cls.assertIsNone = cls.emulate_assertIsNone | |||
if not hasattr(cls, "assertIsNotNone"): | |||
cls.assertIsNotNone = cls.emulate_assertIsNotNone | |||
if hasattr(cls, "assertRaisesRegexp"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this was needed for some old Python versions, but it is no longer needed, and it is producing a warning about assertRaisesRegexp being deprecated.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3084 +/- ##
========================================
Coverage 71.89% 71.89%
========================================
Files 110 110
Lines 16395 16395
Branches 2342 2342
========================================
Hits 11788 11788
Misses 4055 4055
Partials 552 552 ☔ View full report in Codecov by Sentry. |
Fixing pytest warnings; most of them were due to strings representing regular expressions missing the 'r' prefix (we were suppressing those from pylint).