Skip to content

Commit

Permalink
Fix noExceptions future test (#26640)
Browse files Browse the repository at this point in the history
Fixes a future test by making sure it continues to fail to compile since
the feature is not implemented.

[Not reviewed - trivial]
  • Loading branch information
jabraham17 authored Feb 3, 2025
2 parents 1914f5f + 640b0b6 commit 96aeba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/library/packages/Python/correctness/noExceptions.bad
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
noExceptions.chpl:18: error: unresolved call 'Interpreter.init(0)'
$CHPL_HOME/modules/packages/Python.chpl:nnnn: note: this candidate did not match: Interpreter.init()
noExceptions.chpl:18: note: because call includes 1 argument
$CHPL_HOME/modules/packages/Python.chpl:nnnn: note: but function can only accept 0 arguments
noExceptions.chpl:18: error: unresolved call 'Interpreter.init(checkExceptions=0)'
$CHPL_HOME/modules/packages/Python.chpl:nnnn: note: this candidate did not match: Interpreter.init(isSubInterpreter: bool = false)
noExceptions.chpl:18: note: because call uses named argument checkExceptions
$CHPL_HOME/modules/packages/Python.chpl:nnnn: note: but function contains no formal named checkExceptions
4 changes: 2 additions & 2 deletions test/library/packages/Python/correctness/noExceptions.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ raise Exception('Hello, World!')

// explicitly use no checking, blocked by https://github.com/chapel-lang/chapel/issues/26579
{
var interp = new Interpreter(false);
var interp = new Interpreter(checkExceptions=false);
var mod = new Module(interp, 'hello', hello);
}

// explicitly use checking, blocked by https://github.com/chapel-lang/chapel/issues/26579
{
var interp = new Interpreter(true);
var interp = new Interpreter(checkExceptions=true);
try {
var mod = new Module(interp, 'hello', hello_raise);
} catch e: PythonException {
Expand Down

0 comments on commit 96aeba8

Please sign in to comment.