Skip to content
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

Stop multiple calls to AsyncPGInstrumentor.__init__ from clobbering instance attributes #1791

Prev Previous commit
Next Next commit
Fix lint errors
  • Loading branch information
marcuslimdw committed Feb 5, 2024
commit 6ce6a515368d7500258a5f9686cbb29d20dbee0c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def test_duplicated_instrumentation_works(self):
first = AsyncPGInstrumentor()
first.instrument()
second = AsyncPGInstrumentor()
self.assertIsNotNone(first._tracer)
second.instrument()
self.assertIsNotNone(first._tracer)
self.assertIsNotNone(second._tracer)

def test_duplicated_uninstrumentation(self):
AsyncPGInstrumentor().instrument()
Expand Down