File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ Reason=SystemError: The stream does not support seeking
190190[CPython.test_cgitb] # Module will be removed in 3.13 - https://github.com/IronLanguages/ironpython3/issues/1352
191191Ignore =true
192192
193- [CPython.test_class]
193+ [CPython.test_class] # IronPython.test_class_stdlib
194194IsolationLevel =ENGINE
195195MaxRecursion =100
196196Ignore =true
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ Timeout=120000 # 2 minute timeout
88RunCondition =NOT $(IS_MONO)
99Reason =Exception on adding DocTestSuite
1010
11+ [IronPython.test_class_stdlib]
12+ IsolationLevel =ENGINE
13+ MaxRecursion =100 # tests stack overflow handling
14+
1115[IronPython.test_cliclass]
1216IsolationLevel =PROCESS # TODO: figure out - wpf fails to load otherwise
1317
Original file line number Diff line number Diff line change 1+ # Licensed to the .NET Foundation under one or more agreements.
2+ # The .NET Foundation licenses this file to you under the Apache 2.0 License.
3+ # See the LICENSE file in the project root for more information.
4+
5+ ##
6+ ## Run selected tests from test_class from StdLib
7+ ##
8+
9+ import unittest
10+ import sys
11+
12+ from iptest import run_test
13+
14+ import test .test_class
15+
16+ def load_tests (loader , standard_tests , pattern ):
17+ if sys .implementation .name == 'ironpython' :
18+ suite = unittest .TestSuite ()
19+ suite .addTest (test .test_class .ClassTests ('testBadTypeReturned' ))
20+ suite .addTest (test .test_class .ClassTests ('testBinaryOps' ))
21+ suite .addTest (test .test_class .ClassTests ('testDel' ))
22+ suite .addTest (unittest .expectedFailure (test .test_class .ClassTests ('testForExceptionsRaisedInInstanceGetattr2' ))) # https://github.com/IronLanguages/ironpython3/issues/1530
23+ suite .addTest (test .test_class .ClassTests ('testGetSetAndDel' ))
24+ suite .addTest (test .test_class .ClassTests ('testHashComparisonOfMethods' ))
25+ suite .addTest (test .test_class .ClassTests ('testHashStuff' ))
26+ suite .addTest (test .test_class .ClassTests ('testInit' ))
27+ suite .addTest (test .test_class .ClassTests ('testListAndDictOps' ))
28+ suite .addTest (test .test_class .ClassTests ('testMisc' ))
29+ suite .addTest (test .test_class .ClassTests ('testSFBug532646' )) # requires MaxRecursion set
30+ suite .addTest (test .test_class .ClassTests ('testUnaryOps' ))
31+ return suite
32+
33+ else :
34+ return loader .loadTestsFromModule (test .test_class , pattern )
35+
36+ run_test (__name__ )
You can’t perform that action at this time.
0 commit comments