File: test_imported_exceptions.py

package info (click to toggle)
sip6 6.15.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,688 kB
  • sloc: ansic: 192,450; python: 20,979; makefile: 25; cpp: 20
file content (15 lines) | stat: -rw-r--r-- 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-License-Identifier: BSD-2-Clause

# Copyright (c) 2026 Phil Thompson <phil@riverbankcomputing.com>


import pytest


cfg_exceptions = True
cfg_package = 'imported_exceptions'


def test_imported_exceptions(package):
    with pytest.raises(package.handler_module.StdException):
        package.thrower_module.throwException()