Skip to content

Error: detected recursive #i[37 chars].py #5

@sagitter

Description

@sagitter

Hi,

2 tests failed by compiling latest Preprocess-1.2.2 under Python3: http://fpaste.org/272764/

======================================================================
FAIL: preprocess_inputs/preprocessinputs/recursive_include_a.py
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_preprocess_inputs.py", line 103, in <lambda>
    testFunction = lambda self, fname=fname: _testOneInputFile(self, fname)
  File "./test_preprocess_inputs.py", line 88, in _testOneInputFile
    % pprint.pformat(diff))
AssertionError: "preprocess: error: detected recursive #i[37 chars].py'" != 'Fatal Python error: Cannot recover from [13285 chars] ...'
Diff is 13314 characters long. Set self.maxDiff to None to see it. : <expected error> != <actual error>:
['- preprocess: error: detected recursive #include of '
 "'inputs/recursive_include_a.py'",
 '+ Fatal Python error: Cannot recover from stack overflow.\n',
 '+ \n',
 '+ Current thread 0x00007fe492e19700 (most recent call first):\n',
 '+   File '
 '"/home/sagitter/rpmbuild/BUILD/python3-preprocess-1.2.2-1.20150919gitd5ab9a.fc22/lib/preprocess.py", '
 'line 801 in getContentType\n',
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions