Hi,

> test_progress regression with WoLpH/python-progressbar 3.34.3

< anthraxx > lamby: h01ger: can anyone give me the output of
             print(err) in def test_progress() in tests/test_progress.py
             would help me creating a patch that works with both versions

Sure. Starting with 70cb725deb12a2eddc4613b5e3af69ed13434bf7 and I apply:

  --- a/tests/test_progress.py
  +++ b/tests/test_progress.py
  @@ -46,6 +46,9 @@ def test_progress(capsys):
       assert ret == 1
       assert "ETA" in err
  +    print('-------')
  +    print(repr(err))
  +    print('-------')


… I get:


  $ PYTHON3PATH=. py.test-3 -s tests/test_progress.py
  
======================================================================================
 test session starts 
=======================================================================================
  platform linux -- Python 3.5.4, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
  benchmark: 3.0.0 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=5.00us max_time=1.00s calibration_precision=10 
warmup=False warmup_iterations=100000)
  rootdir: /home/lamby/git/debian/reproducible/diffoscope, inifile:
  plugins: pylint-0.7.1, cov-2.5.1, benchmark-3.0.0
  collected 2 items                                                             
                                                                                
                                    
  
  tests/test_progress.py -------
  ' |                          |    0%                             ETA:  
--:--:-- \r |#######################    |   86%                   dir/text  
ETA:  0:00:00 \r |########################## |   98%                   dir/null 
 ETA:  0:00:00 \r |########################## |   99%                   
dir/link  ETA:  0:00:00 \r |###########################|  100%                  
           ETA:  0:00:00 \r |###########################|  100%                 
            ETA:  0:00:00 \r |###########################|  100%                
             Time: 0:00:00 \r\n'
  -------
  ..
  
  
====================================================================================
 2 passed in 0.39 seconds 
====================================================================================


(Also here: https://gist.github.com/lamby/4045538fa4417b26457d4d29bf72986e/raw)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-

Reply via email to