diff --git a/xls/dslx/tests/errors/error_modules_test.py b/xls/dslx/tests/errors/error_modules_test.py index 495fd24d62..09c23cb71c 100644 --- a/xls/dslx/tests/errors/error_modules_test.py +++ b/xls/dslx/tests/errors/error_modules_test.py @@ -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): @@ -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( @@ -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(