From dcb8955c1af6a2f843733dce5ef79cf1b6bc6d5e Mon Sep 17 00:00:00 2001 From: jbtule Date: Thu, 2 Nov 2023 11:34:09 -0500 Subject: [PATCH] i think ironpython does work on .net6 --- Tests/DynamicObjects.cs | 2 +- Tests/Linq.cs | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Tests/DynamicObjects.cs b/Tests/DynamicObjects.cs index bc04615..91444cb 100644 --- a/Tests/DynamicObjects.cs +++ b/Tests/DynamicObjects.cs @@ -573,7 +573,7 @@ public void TestRecorder() } -#if !NETCOREAPP2_0 +#if !NET6 [Test] public void TestCodeDomLateTypeBind() diff --git a/Tests/Linq.cs b/Tests/Linq.cs index 137ba77..c13713a 100644 --- a/Tests/Linq.cs +++ b/Tests/Linq.cs @@ -6,10 +6,9 @@ using System.Text; using System.Threading.Tasks; using NUnit.Framework; -#if !NETCOREAPP2_0 using IronPython.Hosting; using Microsoft.Scripting; -#endif + namespace Dynamitey.Tests { [TestFixture] @@ -37,7 +36,7 @@ public void MoreGenericsDynamicLinq() Assert.AreEqual(expected, actual); } -#if !NETCOREAPP2_0 + private dynamic RunPythonHelper(object linq, string code) { @@ -53,15 +52,7 @@ private dynamic RunPythonHelper(object linq, string code) tCompiled.Execute(tScope); return tScope.GetVariable("result"); } -#else - private dynamic RunPythonHelper(object linq, string code) - { - - Assert.Ignore("Iron Python Doesn't work on .net core"); - return new object(); - } -#endif