Skip to content

Commit

Permalink
added test case for string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schott committed Feb 16, 2021
1 parent f36f926 commit 930bf3a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_fsevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def start_watching(path=None, use_full_emitter=False):
global emitter
path = p("") if path is None else path
emitter = FSEventsEmitter(event_queue, ObservedWatch(path, recursive=True))
emitter.suppress_history = True
emitter.start()


Expand Down Expand Up @@ -127,6 +128,21 @@ def on_thread_stop(self):
observer.unschedule(w)


def test_converting_cfstring_to_pyunicode():
"""See https://github.com/gorakhargosh/watchdog/issues/762
"""

start_watching()

try:
mkdir(p("TéstClass"))
event, _ = event_queue.get()
breakpoint()
assert event.src_path.endswith("TéstClass")
finally:
emitter.stop()


def test_watchdog_recursive():
""" See https://github.com/gorakhargosh/watchdog/issues/706
"""
Expand Down

0 comments on commit 930bf3a

Please sign in to comment.