[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2019-03-08 Thread Ernesto Eduardo Medina Núñez

Ernesto Eduardo Medina Núñez  added the comment:

While this gets fixed, can you provide a workaround? or recommend another 
library?

--
nosy: +Ernesto Eduardo Medina Núñez

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2018-07-11 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
type: crash -> behavior
versions: +Python 3.8 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2017-03-18 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi :


--
versions: +Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2015-08-20 Thread John Taylor

John Taylor added the comment:

I am seeing something similar in difflib.HtmlDiff.make_file() under Python 
3.4.3 (windows 7).  Do I need to file a separate bug report?


File H:\test\test.py, line 522, in print_differ
diff = html.make_file(file1_data,file2_data,dir 1,dir 2,True)
  File C:\Python34\lib\difflib.py, line 1713, in make_file
context=context,numlines=numlines))
  File C:\Python34\lib\difflib.py, line 1962, in make_table
fromlist,tolist,flaglist = self._collect_lines(diffs)
  File C:\Python34\lib\difflib.py, line 1830, in _collect_lines
for fromdata,todata,flag in diffs:
  File C:\Python34\lib\difflib.py, line 1806, in _line_wrapper
self._split_line(fromlist,fromline,fromtext)
  File C:\Python34\lib\difflib.py, line 1791, in _split_line
self._split_line(data_list,'',line2)
  
  (repeated many times)

  File C:\Python34\lib\difflib.py, line 1791, in _split_line
self._split_line(data_list,'',line2)
  File C:\Python34\lib\difflib.py, line 1755, in _split_line
if (size = max) or ((size -(text.count('\0')*3)) = max):
RuntimeError: maximum recursion depth exceeded in comparison

--
nosy: +jftuga

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2015-06-29 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi levkivs...@gmail.com:


--
nosy: +levkivskyi

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2014-04-18 Thread Gregory P. Smith

Gregory P. Smith added the comment:

that seems reasonable.  unittest's assertSequenceEqual is using this to attempt 
to display a useful error message as to what the delta was; it should try 
harder to avoid difflib corner cases.

At the very least, unittest should recover from a difflib failure and report a 
test failure without the possibly nicer message.

--
title: Difflib.compare() crashes on mostly different sequences - unittest 
assertSequenceEqual can lead to Difflib.compare() crashing on mostly different 
sequences

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21253
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com