mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
* Replaced print with sys.stdout.write * Fixed tests * Normalized line endings
This commit is contained in:
parent
ca46956e20
commit
c196e2901c
@ -41,7 +41,7 @@ class TestCorrectedCommand(object):
|
|||||||
settings.update(override_settings)
|
settings.update(override_settings)
|
||||||
CorrectedCommand(script, None, 1000).run(Command(script, ''))
|
CorrectedCommand(script, None, 1000).run(Command(script, ''))
|
||||||
out, _ = capsys.readouterr()
|
out, _ = capsys.readouterr()
|
||||||
assert out[:-1] == printed
|
assert out == printed
|
||||||
|
|
||||||
|
|
||||||
class TestRule(object):
|
class TestRule(object):
|
||||||
|
@ -255,4 +255,4 @@ class CorrectedCommand(object):
|
|||||||
logs.debug(u'PYTHONIOENCODING: {}'.format(
|
logs.debug(u'PYTHONIOENCODING: {}'.format(
|
||||||
os.environ.get('PYTHONIOENCODING', '!!not-set!!')))
|
os.environ.get('PYTHONIOENCODING', '!!not-set!!')))
|
||||||
|
|
||||||
print(self._get_script())
|
sys.stdout.write(self._get_script())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user