Skip to content

Commit

Permalink
Fix broken test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 699349166
  • Loading branch information
grebe authored and copybara-github committed Nov 23, 2024
1 parent 74dad6c commit 36ec15f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xls/dslx/tests/errors/error_modules_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def test_recursive_self_importer(self):
stderr = self._run(
'xls/dslx/tests/errors/recursive_self_importer.x'
)
self.assertIn('recursive_self_importer.x:15:1-15:7', stderr)
self.assertIn('recursive_self_importer.x:15:1-', stderr)
self.assertIn('RecursiveImportError', stderr)

def test_corecursive_importer_a(self):
Expand All @@ -813,7 +813,7 @@ def test_corecursive_importer_a(self):
stderr,
(
r'subsequent \(nested\) import @'
r' xls/dslx/tests/errors/corecursive_importer_b.x:15:1-15:7'
r' xls/dslx/tests/errors/corecursive_importer_b.x:15:1-'
),
)
self.assertRegex(
Expand All @@ -836,14 +836,14 @@ def test_imports_corecursive_importer(self):
stderr,
(
r'previous import @'
r' xls/dslx/tests/errors/imports_corecursive_importer.x:15:1-15:7'
r' xls/dslx/tests/errors/imports_corecursive_importer.x:15:1-'
),
)
self.assertRegex(
stderr,
(
r'subsequent \(nested\) import @'
r' xls/dslx/tests/errors/corecursive_importer_b.x:15:1-15:7'
r' xls/dslx/tests/errors/corecursive_importer_b.x:15:1-'
),
)
self.assertRegex(
Expand Down

0 comments on commit 36ec15f

Please sign in to comment.