Skip to content

Commit

Permalink
writer_test: Use new-style trollius yield From.
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoo committed Oct 9, 2014
1 parent 430a4b8 commit d84435e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wpull/writer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_new_file_and_clobber(self):

with cd_tempdir() as temp_dir:
app = Builder(args, unit_test=True).build()
exit_code = yield app.run()
exit_code = yield From(app.run())

self.assertEqual(0, exit_code)

Expand Down Expand Up @@ -203,7 +203,7 @@ def test_file_continue(self):
out_file.write(b'START')

app = Builder(args, unit_test=True).build()
exit_code = yield app.run()
exit_code = yield From(app.run())

self.assertEqual(0, exit_code)

Expand Down Expand Up @@ -231,7 +231,7 @@ def test_timestamping_hit(self):

builder = Builder(args, unit_test=True)
app = builder.build()
exit_code = yield app.run()
exit_code = yield From(app.run())

self.assertEqual(0, exit_code)

Expand All @@ -256,7 +256,7 @@ def test_timestamping_miss(self):

builder = Builder(args, unit_test=True)
app = builder.build()
exit_code = yield app.run()
exit_code = yield From(app.run())

self.assertEqual(0, exit_code)

Expand Down

0 comments on commit d84435e

Please sign in to comment.