Skip to content

Commit

Permalink
Ignore deprecation warnings from protobufs (quantumlib#4751)
Browse files Browse the repository at this point in the history
  • Loading branch information
viathor authored and rht committed May 1, 2023
1 parent ceb8f41 commit 7fe70a6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
# limitations under the License.


def pytest_configure(config):
# Ignore deprecation warnings in python code generated from our protobuf definitions.
# Eventually, the warnings will be removed by upgrading protoc compiler. See issues
# #4161 and #4737.
for f in (
"FieldDescriptor",
"Descriptor",
"EnumDescriptor",
"EnumValueDescriptor",
"FileDescriptor",
"OneofDescriptor",
):
config.addinivalue_line("filterwarnings", f"ignore:Call to deprecated create function {f}")


def pytest_addoption(parser):
parser.addoption(
"--rigetti-integration",
Expand Down

0 comments on commit 7fe70a6

Please sign in to comment.