Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit eefe7f3

Browse files
committed
Fix parser test case for invalid source
Commit e886115 introduced some tests that intend to iterate over strings that contain definitions of invalid source code and then assert that the parser does something sensible with these sources. However, there was a typo in e886115 causing the tests to not execute as expected: the invalid sources are iterated in the `source_ucli` variable. However, the parsing is done against the `source_ucl` variable which contains a known parsable source string!
1 parent d0d5bec commit eefe7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/test_definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def test_import_parser():
223223
source_future_import_invalid7,
224224
source_future_import_invalid8,
225225
), 1):
226-
module = parse(StringIO(source_ucl), 'file_invalid{}.py'.format(i))
226+
module = parse(StringIO(source_ucli), 'file_invalid{}.py'.format(i))
227227

228228
assert Module('file_invalid{}.py'.format(i), _, 1,
229229
_, _, None, _, _,

0 commit comments

Comments
 (0)