Changeset 1574:b3b06ecffc0a


Ignore:
Timestamp:
Oct 4, 2014, 5:36:46 PM (7 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Added a test for MS parser for pre-epoch years (see ticket #83).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_stat.py

    r1573 r1574  
    227227        lines = [
    228228          "10-19-2012  03:13PM       <DIR>          SYNCDEST",
    229           "10-19-2012  03:13PM       <DIR>          SYNCSOURCE"
     229          "10-19-2012  03:13PM       <DIR>          SYNCSOURCE",
     230          "10-19-1968  03:13PM       <DIR>          SYNC"
    230231          ]
    231232        expected_stat_results = [
     
    234235          [16640, None, None, None, None, None, None, None,
    235236           (2012, 10, 19, 15, 13, 0), None, "SYNCSOURCE", None],
     237          [16640, None, None, None, None, None, None, None,
     238           EPOCH, None, "SYNC", None],
    236239          ]
    237240        self._test_valid_lines(ftputil.stat.MSParser, lines,
Note: See TracChangeset for help on using the changeset viewer.