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 ec7ad5b commit c993fa4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 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,20 @@ 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()
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 c993fa4

Please sign in to comment.