Skip to content
Permalink
Browse files

Issue #239: Fix test case syntax in python2.7 (#247)

  • Loading branch information...
spaceone authored and prologic committed Sep 12, 2018
1 parent 7026789 commit 2ec7fdfe3905fbff5b875d0788cf1191b077119c
Showing with 3 additions and 4 deletions.
  1. +3 −4 tests/io/test_notify.py
@@ -28,9 +28,10 @@ def __init__(self, app, watcher, tmpdir, timeout=0.5):
self.tmpdir = tmpdir
self.timeout = timeout

def create(self, *targets, assert_created=True, dir=False):
def create(self, *targets, **kwargs):
assert_created = kwargs.get('assert_created', True)
target = os.path.join(*targets)
self.tmpdir.ensure(target, dir=dir)
self.tmpdir.ensure(target, dir=kwargs.get('dir', False))
self.watcher.wait("created", timeout=self.timeout)
assert self.app.created_status == assert_created
# Reset for next call
@@ -152,5 +153,3 @@ def test_notify_subdir_recursive_no_auto_add(notify, tmpdir, creator):
creator.create(subdir, "helloworld.txt", assert_created=False)

# Skip notify.remove_path() because pyinotify is broken


0 comments on commit 2ec7fdf

Please sign in to comment.
You can’t perform that action at this time.