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

DM-33600: Update exception type raised by registry #236

Merged
merged 1 commit into from
Feb 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_graphBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import unittest

import lsst.utils.tests
from lsst.daf.butler.registry import UserExpressionError
from lsst.pipe.base.graphBuilder import DatasetQueryConstraintVariant
from lsst.pipe.base.tests import simpleQGraph
from lsst.utils.tests import temporaryDirectory
Expand Down Expand Up @@ -60,7 +61,7 @@ def testAddInstrumentMismatch(self):
pipeline = simpleQGraph.makeSimplePipeline(
nQuanta=5, instrument="lsst.pipe.base.tests.simpleQGraph.SimpleInstrument"
)
with self.assertRaises(RuntimeError):
with self.assertRaises(UserExpressionError):
simpleQGraph.makeSimpleQGraph(root=root, pipeline=pipeline, userQuery="instrument = 'foo'")


Expand Down