From fad8121cbfb9b1137077d9c3b8f7a3d8313579d3 Mon Sep 17 00:00:00 2001 From: hakril Date: Wed, 13 Jan 2016 23:43:04 +0100 Subject: [PATCH] Updated TODO and test for CreateFile error_check fix --- TODO | 5 +---- windows/test/__init__.py | 4 ++-- windows/test/mytest.py | 3 ++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index 21a7c55..6573af3 100644 --- a/TODO +++ b/TODO @@ -7,7 +7,4 @@ FIXME: - WMI - COM initialisation when injected in another process - The CoInitialize might be already called - - Fix that - - - Add INVALID_HANDLE_VALUE to windef - - change error_check of CreateFile(A|W) \ No newline at end of file + - Fix that \ No newline at end of file diff --git a/windows/test/__init__.py b/windows/test/__init__.py index cd33ee6..2635965 100644 --- a/windows/test/__init__.py +++ b/windows/test/__init__.py @@ -1,3 +1,3 @@ -from mytest import WindowsTestCase, pop_calc_32, pop_calc_64, Calc32, Calc64 +from mytest import WindowsTestCase, WindowsAPITestCase, pop_calc_32, pop_calc_64, Calc32, Calc64 -__all__ = ["WindowsTestCase"] +__all__ = ["WindowsTestCase", "WindowsAPITestCase"] diff --git a/windows/test/mytest.py b/windows/test/mytest.py index 59861d8..153300c 100644 --- a/windows/test/mytest.py +++ b/windows/test/mytest.py @@ -293,7 +293,8 @@ class WindowsAPITestCase(unittest.TestCase): if __name__ == '__main__': alltests = unittest.TestSuite() - alltests.addTest(unittest.makeSuite(WindowsTestCase), unittest.makeSuite(WindowsAPITestCase)) + alltests.addTest(unittest.makeSuite(WindowsTestCase)) + alltests.addTest(unittest.makeSuite(WindowsAPITestCase)) alltests.debug() tester = unittest.TextTestRunner(verbosity=2) tester.run(alltests)