Commit Graph

22 Commits

Author SHA1 Message Date
Metallicow
9568103974 Trim trailing space unittests directory 2016-12-05 16:19:11 -06:00
Robin Dunn
b6895f42f1 Move self.frame.Show back to setUp and add posting a size event to it 2016-07-04 15:51:00 -07:00
Robin Dunn
3783278a2b Try harder AND smarter to avoid stuck tests, where tests seem to run fine but don't terminate correctly. 2016-07-04 14:56:54 -07:00
Robin Dunn
ed4756b902 Remove wx.lib.six and use the stock six module instead,
and add it as an installation dependency.
2016-06-30 20:07:57 -07:00
Robin Dunn
4f38ee259d Remove imp_unittest 2016-05-07 19:16:28 -07:00
Robin Dunn
d051ec1420 ensure that waitFor calls myYield at least once 2015-12-23 17:35:08 -08:00
Robin Dunn
2c72085b43 Improve frame and app cleanup in WidgetTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-18 03:25:22 +00:00
Robin Dunn
2e30a88173 Some Py3 and various other fixes from wxGuru.
Merged and squashed from https://github.com/RobinD42/Phoenix/pull/15,
with additional edits.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-05 20:54:22 +00:00
Robin Dunn
d7df8cd7b8 More pubsub test updates from Werner
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-04 02:00:34 +00:00
Robin Dunn
3105b4d95a Pubsub unittest updates from Werner
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-02 01:01:30 +00:00
Robin Dunn
596cb9b484 Set the log target to use stderr so it won't try making log dialogs while tests are running (and the UI might not be in enough of a fully initialized state for them to work without asserting or crashing.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-13 01:46:18 +00:00
Robin Dunn
295d3f6442 * Upgrade to the newest six module (1.2.0) and call it six instead of wx2to3.
* Tweak six a little, adding its license text since we'll only be distributing the module, fix the name of the dummy moves module, and add a PY33 constant since the change in memoryview affects our code.

* Update all modules already using the old wx2to3

* Tweak lots of unit tests and other modules to work with Python 3.3 (still a few more that will need some work.)

* Try to deal with memoryview changes in Py3.3, without much luck...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-16 01:15:41 +00:00
Robin Dunn
d5d284a4e6 Add wx.ComboCtrl and wx.ComboPopup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-06 01:14:57 +00:00
Robin Dunn
b41df0b779 Many, many (many!) changes needed to build and run the Phoenix extension modules with Python 3. Where possible changes were made such that the code works with both Python 2.7 and 3.2 without conditionals. In general the following types of changes were made:
* Changed imports to use either absolute or explicit relative imports.  Implicit relative imports are no longer allowed.

 * Changes to accomodate standard library classes or modues moving to other locations, or being removed entirely.

 * Changes related to print becoming a function, execfile being removed, u'' no longer allowed, and other syntax related issues.

 * Working around C APIs that have changed or simply vanished. (PyInt, PyString, PyBytes, etc.)

 * Dealing with text file objects using strings vs binary file objects using bytes, auto-encoding, and etc.

 * Replacing the use of PyCObject with PyCapsule and dealing with an apparent bug where PyCapsule objects can't be imported from submodules within a package.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-24 23:28:02 +00:00
Robin Dunn
8f04fee7be Add wx.adv.NotificationMessage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-24 23:27:12 +00:00
Robin Dunn
ad25fd5756 Fix comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-26 01:29:39 +00:00
Robin Dunn
8fecc2b5f9 * Rename the wrappers for the C++ wxPlatformInfo to wx.PlatformInformation.
* Restore the wx.PlatformInfo tuple like it exists in Classic.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-24 00:15:33 +00:00
Robin Dunn
7d0c892db5 A little refactoring to share dialog closing methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-17 17:01:29 +00:00
Robin Dunn
5e1e9ac301 some unittest fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-09 06:24:28 +00:00
Robin Dunn
a11f9e73e1 cleanup commented out code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-11 00:40:03 +00:00
Robin Dunn
6e5dd68234 * add a yield function that makes its own eventloop since the unittests are run before MainLoop and wx.Yield is almost a no-op then.
* Use the new yield
* Add some new tests

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 04:24:17 +00:00
Robin Dunn
a548f7224d unittest updates and new test modules
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-15 16:16:21 +00:00