You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_exception.rb
    path of file: ./repos/truffleruby/test/mri/tests/psych
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require_relative 'helper'

module Psych
  class TestException < TestC
    
    def test_load_file_exception
      Tempfile.create(['loadfile', 'yml']) {|t|
        t.binmode
        t.write '--- `'
        t.close
        ex = assert_raise(Psych::SyntaxError) do
          Psych.load_file t.path
        end
        assert_equal t.path, ex.file
      }
    end