New GitHub issue #119287 from DetachHead:<br>

<hr>

<pre>
# Bug report

### Bug description:

```python
from contextlib import suppress

class FooException(Exception): ...

class FooExceptionGroup(ExceptionGroup[Exception]): ...

try:
    with suppress(FooException):
        raise FooExceptionGroup("", [Exception()])
except ExceptionGroup as e:
    print(type(e))
```

in this code, the `suppress` context manager is expected to have no effect, as a `FooException` is not being raised within it. instead, it gets converted to an `ExceptionGroup` then re-raised.

expected output:
```
<class '__main__.FooExceptionGroup'>
```

actual output:
```
<class 'ExceptionGroup'>
```

### CPython versions tested on:

3.12

### Operating systems tested on:

Windows
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/119287">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>