Skip to content

Commit e3be6e5

Browse files
committed
Mark failing ensurepip tests as expectedFailure
1 parent dbbdd7f commit e3be6e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_ensurepip.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def touch(self, directory, filename):
1616
fullname = os.path.join(directory, filename)
1717
open(fullname, "wb").close()
1818

19+
# TODO: RUSTPYTHON
20+
@unittest.expectedFailure
1921
def test_version(self):
2022
# Test version()
2123
with tempfile.TemporaryDirectory() as tmpdir:
@@ -25,6 +27,8 @@ def test_version(self):
2527
unittest.mock.patch.object(ensurepip, '_WHEEL_PKG_DIR', tmpdir)):
2628
self.assertEqual(ensurepip.version(), '1.2.3b1')
2729

30+
# TODO: RUSTPYTHON
31+
@unittest.expectedFailure
2832
def test_get_packages_no_dir(self):
2933
# Test _get_packages() without a wheel package directory
3034
with (unittest.mock.patch.object(ensurepip, '_PACKAGES', None),
@@ -38,6 +42,8 @@ def test_get_packages_no_dir(self):
3842
self.assertIsNotNone(packages['pip'].wheel_name)
3943
self.assertIsNotNone(packages['setuptools'].wheel_name)
4044

45+
# TODO: RUSTPYTHON
46+
@unittest.expectedFailure
4147
def test_get_packages_with_dir(self):
4248
# Test _get_packages() with a wheel package directory
4349
setuptools_filename = "setuptools-49.1.3-py3-none-any.whl"

0 commit comments

Comments
 (0)