We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent080d1bd commitfb49470Copy full SHA for fb49470
src/embed_tests/Codecs.cs
@@ -371,11 +371,23 @@ public void FloatDerivedDecoded()
371
[Test]
372
publicvoidExceptionDecodedNoInstance()
373
{
374
-PyObjectConversions.RegisterDecoder(newInstancelessExceptionDecoder());
375
-usingvarscope=Py.CreateScope();
376
-varerror=Assert.Throws<ValueErrorWrapper>(()=>PythonEngine.Exec(
377
-$"[].__iter__().__next__()"));
378
-Assert.AreEqual(TestExceptionMessage,error.Message);
+if(Runtime.PyVersion<newVersion(3,12))
+{
+PyObjectConversions.RegisterDecoder(newInstancelessExceptionDecoder());
+usingvarscope=Py.CreateScope();
+
379
+varerror=Assert.Throws<ValueErrorWrapper>(()=>
380
+PythonEngine.Exec($"[].__iter__().__next__()")
381
+);
382
+Assert.AreEqual(TestExceptionMessage,error.Message);
383
+}
384
+else
385
386
+Assert.Ignore(
387
+"This test does not work for Python 3.12, see "+
388
+"https://github.com/python/cpython/issues/101578"
389
390
391
}
392
393
publicstaticvoidAcceptsDateTime(DateTimev){}