Ignore:
Timestamp:
Oct 5, 2013, 2:27:16 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Fix: Copy default from class.

The previous "fix" actually shadowed the class-wide default.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mock_ftplib.py

    r1440 r1443  
    108108    def __init__(self, host="", user="", password=""):
    109109        self.closed = 0
    110         # Cached directory.
    111         self.current_dir = None
     110        # Copy default from class.
     111        self.current_dir = self.__class__.current_dir
    112112        # Count successful `transfercmd` invocations to ensure that
    113113        # each has a corresponding `voidresp`.
Note: See TracChangeset for help on using the changeset viewer.