Skip to content

Commit 708a8e3

Browse files
committed
Fix more tests
1 parent f9be860 commit 708a8e3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/core/IronPython.Modules/_ctypes_test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private static string FindRoot() {
2828
return string.Empty;
2929
}
3030

31-
public static string __file__ = Path.Combine(FindRoot(), "Tests", string.Format("_ctypes_test_{0}{1}.pyd", Environment.OSVersion.Platform == PlatformID.Win32NT ? "win" : Environment.OSVersion.Platform == PlatformID.MacOSX ? "macOS" : "linux", Environment.Is64BitProcess ? 64 : 32));
31+
public static string __file__ = Path.Combine(FindRoot(), "tests", "suite", string.Format("_ctypes_test_{0}{1}.pyd", Environment.OSVersion.Platform == PlatformID.Win32NT ? "win" : Environment.OSVersion.Platform == PlatformID.MacOSX ? "macOS" : "linux", Environment.Is64BitProcess ? 64 : 32));
3232
}
3333
}
3434

src/core/IronPython/Lib/iptest/ipunittest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ def generate_suite(tests, failing_tests, skip_tests=[]):
241241
# ip_root = path_combine(rowan_root, basePyDir)
242242
# external_dir = path_combine(rowan_root, 'External.LCA_RESTRICTED/Languages/IronPython')
243243
# clean_external_dir = path_combine(rowan_root, 'External.LCA_RESTRICTED/Languages/CPython/27')
244-
# public_testdir = path_combine(ip_root, 'Tests')
245-
# compat_testdir = path_combine(ip_root, 'Tests/compat')
246-
# test_inputs_dir = path_combine(ip_root, 'Tests/Inputs')
244+
# public_testdir = path_combine(ip_root, 'tests/suite')
245+
# compat_testdir = path_combine(ip_root, 'tests/suite/compat')
246+
# test_inputs_dir = path_combine(ip_root, 'tests/suite/Inputs')
247247
# script_testdir = path_combine(ip_root, 'Scripts')
248248

249249
# math_testdir = path_combine(external_dir, 'Math')

tests/IronPython.Tests/Cases/IronPythonCases.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public override int Test(TestInfo testcase) {
1919
internal class IronPythonCaseGenerator : CommonCaseGenerator<IronPythonCases> {
2020
protected override IEnumerable<TestInfo> GetTests() {
2121
return GetFilenames(new[] {
22-
System.Tuple.Create(category, "Tests"),
22+
System.Tuple.Create(category, Path.Combine("tests", "suite")),
2323
System.Tuple.Create($"{category}.scripts", Path.Combine("eng", "scripts")),
2424
})
2525
.OrderBy(testcase => testcase.Name);

tests/suite/test_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def test_cp16519(self):
956956
self.assertEqual(sys.Dict["1"], "b")
957957
del sys.Dict
958958

959-
with path_modifier(os.path.join(source_root(), 'Tests')):
959+
with path_modifier(os.path.join(source_root(), 'tests', 'suite')):
960960
import testpkg1
961961
testpkg1.Dict = {"1": "c"}
962962
self.assertEqual(testpkg1.Dict["1"], "c")

0 commit comments

Comments
 (0)