We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c839ac2 commit 2359c6bCopy full SHA for 2359c6b
stackless_testsuite/util.py
@@ -113,7 +113,16 @@ def skipUnlessSoftswitching(self):
113
def enable_softswitch(x):
114
return False
115
if not enable_softswitch(None):
116
- self.skipTest("test requires softswitching")
+ self.skipTest("test requires soft-switching")
117
+
118
+ def skipIfSoftswitching(self):
119
+ try:
120
+ enable_softswitch = stackless.enable_softswitch
121
+ except AttributeError:
122
+ def enable_softswitch(x):
123
+ return False
124
+ if enable_softswitch(None):
125
+ self.skipTest("test requires hard-switching")
126
127
def assertCallableWith0Args(self, func, additionalArg=None):
128
self.assertRaisesRegex(TypeError, r"takes no arguments|expected 0 arguments", func, additionalArg)
0 commit comments