preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

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

Open sagitter opened this issue 10 years ago • 0 comments

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',
...

sagitter avatar Sep 29 '15 17:09 sagitter