Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update moto to 1.x milestone version #2471

Merged
merged 4 commits into from
Aug 16, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Extract line 2 and 3 to variables; add linesep to line 3 to prevent p…
…remature file closing
  • Loading branch information
dlstadther committed Aug 14, 2018
commit 36168dda504be25d6bcd89e524aa27b8fbd25d86
8 changes: 5 additions & 3 deletions test/contrib/s3_test.py
Original file line number Diff line number Diff line change
@@ -95,7 +95,9 @@ def test_read_iterator_long(self):
tempf = tempfile.NamedTemporaryFile(mode='wb', delete=False)
temppath = tempf.name
firstline = ''.zfill(key.Key.BufferSize * 5) + os.linesep
contents = firstline + 'line two' + os.linesep + 'line three'
secondline = 'line two' + os.linesep
thirdline = 'line three' + os.linesep
contents = firstline + secondline + thirdline
tempf.write(contents.encode('utf-8'))
tempf.close()

@@ -111,8 +113,8 @@ def test_read_iterator_long(self):

self.assertEqual(3, len(lines))
self.assertEqual(firstline, lines[0])
self.assertEqual("line two" + os.linesep, lines[1])
self.assertEqual("line three", lines[2])
self.assertEqual(secondline, lines[1])
self.assertEqual(thirdline, lines[2])

def test_get_path(self):
t = self.create_target()