diff --git a/ext/opentelemetry-ext-docker-tests/tests/mysql/test_mysql_functional.py b/ext/opentelemetry-ext-docker-tests/tests/mysql/test_mysql_functional.py index 305bea00bf1..84dbd114189 100644 --- a/ext/opentelemetry-ext-docker-tests/tests/mysql/test_mysql_functional.py +++ b/ext/opentelemetry-ext-docker-tests/tests/mysql/test_mysql_functional.py @@ -92,11 +92,13 @@ def test_execute(self): def test_executemany(self): """Should create a child span for executemany """ - with self._tracer.start_as_current_span("rootSpan"): - data = ["1", "2", "3"] + with self._tracer.start_as_current_span("rootSpan"), self.assertRaises( + Exception + ): + data = [("1"), ("2"), ("3")] stmt = "INSERT INTO test (id) VALUES (%s)" self._cursor.executemany(stmt, data) - self.validate_spans() + self.validate_spans() def test_callproc(self): """Should create a child span for callproc diff --git a/tox.ini b/tox.ini index 9d1d1a26cc7..37c21dbd00e 100644 --- a/tox.ini +++ b/tox.ini @@ -94,7 +94,7 @@ envlist = [travis] python = - 3.8: py38, lint, docs, docker-tests + 3.7: py37, lint, docs, docker-tests [testenv] deps =