Changeset 1919:e1f302aa89d0


Ignore:
Timestamp:
Apr 10, 2020, 4:24:10 PM (16 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use constant `unknown` instead of `None`

Although `ftputil.stat.UNKNOWN_PRECISION` is indeed `None`, we're
actually interested in the symbolic constant here.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_file_transfer.py

    r1848 r1919  
    5656            (10000.0 - 0.2 * hour, 2 * hour, 10000.0, hour, True),
    5757            # Unknown precision
    58             (1000.0, None, 1000.0, second, True),
    59             (1000.0, second, 1000.0, None, True),
    60             (1000.0, None, 1000.0, None, True),
     58            (1000.0, unknown, 1000.0, second, True),
     59            (1000.0, second, 1000.0, unknown, True),
     60            (1000.0, unknown, 1000.0, unknown, True),
    6161        ]
    6262        for (
Note: See TracChangeset for help on using the changeset viewer.