@TracerTestCase.run_in_subprocess(env_overrides=dict(DD_SERVICE='mysvc'))
def test_user_specified_app_service(self):
    '\n        When a user specifies a service for the app\n            The psycopg integration should not use it.\n        '
    from ddtrace import config
    assert (config.service == 'mysvc')
    conn = self._get_conn()
    conn.cursor().execute("select 'blah'")
    spans = self.get_spans()
    self.assertEqual(len(spans), 1)
    assert (spans[0].service != 'mysvc')
When a user specifies a service for the app
    The psycopg integration should not use it.
@TracerTestCase.run_in_subprocess(env_overrides=dict(DD_SERVICE='mysvc'))
def test_user_specified_app_service(self):
    '\n        When a user specifies a service for the app\n            The psycopg integration should not use it.\n        '
    from ddtrace import config
    assert (config.service == 'mysvc')
    conn = self._get_conn()
    conn.cursor().execute("select 'blah'")
    spans = self.get_spans()
    self.assertEqual(len(spans), 1)
    assert (spans[0].service != 'mysvc')