Skip to content

Commit

Permalink
make sure future keeps failing to compile when the feature is not imp…
Browse files Browse the repository at this point in the history
…lemented

Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Feb 3, 2025
1 parent 1914f5f commit 640b0b6
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 640b0b6

Please sign in to comment.