diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-08-17 15:46:04 +1000 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-03-31 17:27:10 -0500 |
| commit | 8f0147cf00e3fa8db283adbd1698c60fbe76a62a (patch) | |
| tree | 8b18083264697e79598863acb09811eab3a913d6 /tests/misc | |
| parent | 4c4f81f8f2f68a5dc47d37ba185a2506224d7159 (diff) | |
tests: Modify tests that print repr of an exception with 1 arg.
In Python 3.7 the behaviour of repr() of an exception with one argument
changed: it no longer prints a trailing comma in the argument list. See
https://bugs.python.org/issue30399
This patch modifies tests that rely on this behaviour to not rely on it.
And the python34.py test is updated to include a test for this behaviour
with a .exp file.
Diffstat (limited to 'tests/misc')
| -rw-r--r-- | tests/misc/sys_exc_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/sys_exc_info.py b/tests/misc/sys_exc_info.py index 4bb2c61e8..bf9438e46 100644 --- a/tests/misc/sys_exc_info.py +++ b/tests/misc/sys_exc_info.py @@ -9,7 +9,7 @@ def f(): print(sys.exc_info()[0:2]) try: - 1/0 + raise ValueError('value', 123) except: print(sys.exc_info()[0:2]) f() |
