125
128
>>> real_system = os.system
126
129
>>> os.system = sys.stdout.write
131
['rsync', '-av', '--delete', 'a', 'b']
129
132
>>> rsync("a", "b", excludes=("*.py",))
133
['rsync', '-av', '--delete', '--exclude-from', '-', 'a', 'b']
132
134
>>> os.system = real_system
134
136
cmd = ["rsync", "-av", "--delete"]