diff options
| author | Damien George | 2017-01-16 16:21:04 +1100 |
|---|---|---|
| committer | Damien George | 2017-01-16 16:21:04 +1100 |
| commit | 63e291de706c4c8092fe5f19f3726e5da5e80913 (patch) | |
| tree | eab15158ccf31058aa75d3d4e65cdf04c8176cb7 /tests/import/pkg7 | |
| parent | 9317fee5238f8261e05a19187da355baa9d017ab (diff) | |
py/builtinimport: Raise ValueError for bad relative import, per CPython.
Diffstat (limited to 'tests/import/pkg7')
| -rw-r--r-- | tests/import/pkg7/subpkg1/subpkg2/mod3.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/import/pkg7/subpkg1/subpkg2/mod3.py b/tests/import/pkg7/subpkg1/subpkg2/mod3.py index 747cde03b..7ed69bdee 100644 --- a/tests/import/pkg7/subpkg1/subpkg2/mod3.py +++ b/tests/import/pkg7/subpkg1/subpkg2/mod3.py @@ -7,5 +7,5 @@ print(bar) # whereas CPython raises a ValueError try: from .... import mod1 -except (ImportError, ValueError): - print('Error') +except ValueError: + print('ValueError') |
