Skip to content

Test failure: nitime.tests.test_timeseries.test_UniformTime_repr #239

Description

@sanjayankur31

Hello,

I'm seeing this test fail when upgrading the package for Fedora. Although the results look similar, they're not identical:

=================================== FAILURES ===================================
_________ [doctest] nitime.tests.test_timeseries.test_UniformTime_repr _________
437 >>> time2.sampling_rate                                                                                                                                                                   
438 1000.0 Hz                                                                                  
439 >>> time2
440 UniformTime([0.   , 0.001, 0.002], time_unit='s')    
441                                                                                                                                                                                           
442 >>> a = ts.UniformTime(length=5,sampling_rate=1,time_unit='ms')    
443 
444 >>> b = ts.UniformTime(a)                                                                  
445                                                                                            
446 >>> b                                                                                                                                                                                     
Expected:                                                                                      
    UniformTime([    0.,  1000.,  2000.,  3000.,  4000.], time_unit='ms')
Got:             
    UniformTime([   0., 1000., 2000., 3000., 4000.], time_unit='ms')

This is on Fedora 45 (development):

+ /usr/bin/pytest -v --import-mode=importlib                                                   
============================= test session starts ==============================                                                                                                              
platform linux -- Python 3.14.3, pytest-8.4.2, pluggy-1.6.0 -- /usr/bin/python3                                                                                                               
cachedir: .pytest_cache                                                                        
rootdir: /builddir/build/BUILD/python-nitime-0.12-build/nitime-0.12                                                                                                                           
configfile: pyproject.toml                                                                     
testpaths: nitime                              
collecting ... collected 177 items                                                                                                                                                                                                                                                      ```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions