Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Aug 20, 2024
1 parent b6ca5a9 commit dba4998
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/py/bazel/bzlmod/bazel_module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,16 @@ def testRepositoryRuleErrorInModuleExtensionFailsTheBuild(self):
exit_code, _, stderr = self.RunBazel(['run', '@foo//...'],
allow_failure=True)
self.AssertExitCode(exit_code, 48, stderr)
stderr = '\n'.join(stderr)
self.assertIn(
'ERROR: <builtin>: //pkg:+module_ext+foo: no such attribute'
'/pkg/extension.bzl:3:14: //pkg:+module_ext+foo: no such attribute'
" 'invalid_attr' in 'repo_rule' rule",
stderr,
)
self.assertTrue(
any([
'/pkg/extension.bzl", line 3, column 14, in _module_ext_impl'
in line for line in stderr
]))
self.assertIn(
'/pkg/extension.bzl", line 3, column 14, in _module_ext_impl',
stderr,
)

def testDownload(self):
data_path = self.ScratchFile('data.txt', ['some data'])
Expand Down

0 comments on commit dba4998

Please sign in to comment.