[New-bugs-announce] [issue36259] exception text is being sourced from the wrong file
rhubarbdog x
report at bugs.python.org
Sun Mar 10 21:51:16 EDT 2019
New submission from rhubarbdog x <rhubarbdog76 at gmail.com>:
Hi
i have a directory containing a directory `bug` and the python program `bad.py`. The code for `bad.py` is
```
import os
os.chdir('bug')
print(7/0)
```
directory `bug` contains a file `bad.py` this file contents are
```
test 1
test 2
test 3
test 4
test 5
test 6
```
when i run the python script i get the error text
```
Traceback (most recent call last):
File "bad.py", line 4, in <module>
test 4
ZeroDivisionError: division by zero
```
----------
messages: 337642
nosy: rhubarbdog x
priority: normal
severity: normal
status: open
title: exception text is being sourced from the wrong file
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36259>
_______________________________________
More information about the New-bugs-announce
mailing list