Skip to content

Commit

Permalink
Remove extra newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
James Curtin committed Jan 30, 2019
1 parent 13a7f5a commit a1c08a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test_autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,6 @@ def test_in_place(self):
pass
""", f.read())


def test_check_with_empty_file(self):
line = ''

Expand All @@ -1365,7 +1364,6 @@ def test_check_with_empty_file(self):
standard_error=None)
self.assertEqual('No issues detected!', output_file.getvalue())


def test_check_correct_file(self):
with temporary_file("""\
import foo
Expand All @@ -1378,7 +1376,6 @@ def test_check_correct_file(self):
standard_error=None)
self.assertEqual('No issues detected!', output_file.getvalue())


def test_check_useless_pass(self):
with temporary_file("""\
import foo
Expand All @@ -1400,8 +1397,8 @@ def test_check_useless_pass(self):
standard_out=output_file,
standard_error=None)
self.assertEqual(cm.exception.code, 1)
self.assertEqual('Unused imports/variables detected.', output_file.getvalue())

self.assertEqual('Unused imports/variables detected.',
output_file.getvalue())

def test_in_place_with_empty_file(self):
line = ''
Expand Down

0 comments on commit a1c08a2

Please sign in to comment.