def test_disabled_execute(self):
    conn = self._get_conn()
    self.tracer.enabled = False
    conn.cursor().execute(query="select 'blah'")
    conn.cursor().execute("select 'blah'")
    self.assert_has_no_spans()
def test_disabled_execute(self):
    conn = self._get_conn()
    self.tracer.enabled = False
    conn.cursor().execute(query="select 'blah'")
    conn.cursor().execute("select 'blah'")
    self.assert_has_no_spans()