Skip to content

TST: testing issue on windows #10822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jreback opened this issue Aug 14, 2015 · 3 comments
Closed

TST: testing issue on windows #10822

jreback opened this issue Aug 14, 2015 · 3 comments
Labels
Testing pandas testing functions or related to the test suite Unicode Unicode strings
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Aug 14, 2015

xref #7599

@sinhrks

This fails on windows (actually doesn't on a windows vm, you need an actual windows machine....weird)

======================================================================                                                                                        
ERROR: test_invalid_index_types (pandas.tseries.tests.test_frequencies.TestFrequencyInference)                                                                
----------------------------------------------------------------------                                                                                        
Traceback (most recent call last):                                                                                                                            
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\tests\test_frequencies.py", line 505, in test_invalid_index_types     
    self.assertRaises(ValueError, lambda : frequencies.infer_freq(i))                                                                                         
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\util\testing.py", line 1831, in assertRaises                                  
    _callable(*args, **kwargs)                                                                                                                                
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\tests\test_frequencies.py", line 505, in <lambda>                     
    self.assertRaises(ValueError, lambda : frequencies.infer_freq(i))                                                                                         
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\frequencies.py", line 813, in infer_freq                              
    index = pd.DatetimeIndex(index)                                                                                                                           
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\util\decorators.py", line 89, in wrapper                                      
    return func(*args, **kwargs)                                                                                                                              
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\index.py", line 302, in __new__                                       
    subarr = tools.to_datetime(data, box=False)                                                                                                               
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\util\decorators.py", line 89, in wrapper                                      
    return func(*args, **kwargs)                                                                                                                              
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\tools.py", line 267, in to_datetime                                   
    unit=unit, infer_datetime_format=infer_datetime_format)                                                                                                   
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\tools.py", line 376, in _to_datetime                                  
    return _convert_listlike(arg, box, format)                                                                                                                
  File "c:\Users\Jeff Reback\Documents\GitHub\pandas\build\lib.win32-2.7\pandas\tseries\tools.py", line 355, in _convert_listlike                             
    require_iso8601=require_iso8601)                                                                                                                          
  File "tslib.pyx", line 1809, in pandas.tslib.array_to_datetime (pandas\tslib.c:31227)                                                                       
  File "tslib.pyx", line 1995, in pandas.tslib.array_to_datetime (pandas\tslib.c:30864)                                                                       
  File "tslib.pyx", line 1989, in pandas.tslib.array_to_datetime (pandas\tslib.c:30754)                                                                       
  File "tslib.pyx", line 1596, in pandas.tslib.parse_datetime_string (pandas\tslib.c:24749)                                                                   
  File "C:\python27-32\lib\site-packages\python_dateutil-2.2-py2.7.egg\dateutil\parser.py", line 748, in parse                                                
    return DEFAULTPARSER.parse(timestr, **kwargs)                                                                                                             
  File "C:\python27-32\lib\site-packages\python_dateutil-2.2-py2.7.egg\dateutil\parser.py", line 310, in parse                                                
    res, skipped_tokens = self._parse(timestr, **kwargs)                                                                                                      
TypeError: 'NoneType' object is not iterable    
@jreback jreback added Testing pandas testing functions or related to the test suite Unicode Unicode strings labels Aug 14, 2015
@jreback jreback added this to the 0.17.0 milestone Aug 14, 2015
@jreback
Copy link
Contributor Author

jreback commented Aug 14, 2015

you can directly repro by doing this:

v = tm.makeUnicodeIndex(5).values
pd.DatetimeIndex(v)

it should raise a ValueError (on other platforms), but somehow passes that routine and goes to dateutil which completely borks.

@sinhrks
Copy link
Member

sinhrks commented Aug 15, 2015

Thanks, will check.

jreback added a commit that referenced this issue Aug 20, 2015
@jreback
Copy link
Contributor Author

jreback commented Aug 20, 2015

closed by f30e423

@sinhrks though just skipping, so if you ever have a chance :)

@jreback jreback closed this as completed Aug 20, 2015
springcoil pushed a commit to springcoil/pandas that referenced this issue Aug 21, 2015
update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs
springcoil pushed a commit to springcoil/pandas that referenced this issue Aug 21, 2015
update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

ENH: pickle support for Period pandas-dev#10439

update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs
springcoil pushed a commit to springcoil/pandas that referenced this issue Aug 22, 2015
update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs
springcoil pushed a commit to springcoil/pandas that referenced this issue Aug 22, 2015
update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

ENH: pickle support for Period pandas-dev#10439

update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs
springcoil added a commit to springcoil/pandas that referenced this issue Aug 30, 2015
BUG: 10633 - some last errors removed

ENH: pickle support for Period pandas-dev#10439

update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs

TST: Changes in test

ENH: pickle support for Period pandas-dev#10439

update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

ENH: pickle support for Period pandas-dev#10439

update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs

ERR: 10720

BUG: 10633 and 10800 fix

merging

ENH: pickle support for Period pandas-dev#10439

update legacy_storage for pickles

update pickles/msgpack for 0.16.2

Added tests for ABC Types, Issue pandas-dev#10828

TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode

COMPAT:Allow multi-indexes to be written to excel.

(Even though they cannot be read back in.)

Closes pandas-dev#10564

DOC: typo

A few changes in docs

TST: Changes in test

Fixing a slight messup

DOC:Updating consistent imports in the merging.rst file pandas-dev#9886

DOC: GH9886 Part V

DOC: GH9886 Part V - some merging issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Unicode Unicode strings
Projects
None yet
Development

No branches or pull requests

2 participants