Skip to content

Commit da8c879

Browse files
author
roman_yakovenko
committed
small unit tests improvements
1 parent 4e7124e commit da8c879

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

unittests/complex_types_tester.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# accompanying file LICENSE_1_0.txt or copy at
44
# http://www.boost.org/LICENSE_1_0.txt)
55

6+
import sys
67
import unittest
78
import autoconfig
89
import parser_test_case
@@ -30,12 +31,13 @@ def test( self ):
3031
pass
3132

3233
def create_suite():
33-
suite = unittest.TestSuite()
34-
suite.addTest( unittest.makeSuite(tester_t))
34+
suite = unittest.TestSuite()
35+
if sys.platform != 'win32':
36+
suite.addTest( unittest.makeSuite(tester_t))
3537
return suite
3638

3739
def run_suite():
3840
unittest.TextTestRunner(verbosity=2).run( create_suite() )
3941

4042
if __name__ == "__main__":
41-
run_suite()
43+
run_suite()

unittests/declarations_tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def create_suite():
198198
suite = unittest.TestSuite()
199199
suite.addTest( unittest.makeSuite(file_by_file_tester_t))
200200
suite.addTest( unittest.makeSuite(all_at_once_tester_t))
201-
if sys.platform == 'win32':
201+
if sys.platform == 'win32' and autoconfig.get_pdb_global_ns():
202202
suite.addTest( unittest.makeSuite(pdb_based_tester_t))
203203

204204
return suite

0 commit comments

Comments
 (0)