Files
Phoenix/unittests/test_fswatcher.py
Robin Dunn d755518068 Various test fixes for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:59 +00:00

23 lines
643 B
Python

import imp_unittest, unittest
import wtc
import wx
import os
#---------------------------------------------------------------------------
class fswatcher_Tests(wtc.WidgetTestCase):
def test_fswatcher1(self):
evtLoop = self.app.GetTraits().CreateEventLoop()
activator = wx.EventLoopActivator(evtLoop) # automatically restores the old one
watcher = wx.FileSystemWatcher()
watcher.Add(os.getcwd())
watcher.Bind(wx.EVT_FSWATCHER, lambda evt: None)
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()