Skip to content

Unmark passing tests in test_cmd_line_script #3185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions Lib/test/test_cmd_line_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,13 @@ def test_script_compiled(self):
pyc_file, script_dir, None,
importlib.machinery.SourcelessFileLoader)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_directory(self):
with support.temp_dir() as script_dir:
script_name = _make_test_script(script_dir, '__main__')
self._check_script(script_dir, script_name, script_dir,
script_dir, '',
importlib.machinery.SourceFileLoader)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_directory_compiled(self):
with support.temp_dir() as script_dir:
script_name = _make_test_script(script_dir, '__main__')
Expand All @@ -263,24 +259,18 @@ def test_directory_compiled(self):
script_dir, '',
importlib.machinery.SourcelessFileLoader)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_directory_error(self):
with support.temp_dir() as script_dir:
msg = "can't find '__main__' module in %r" % script_dir
self._check_import_error(script_dir, msg)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_zipfile(self):
with support.temp_dir() as script_dir:
script_name = _make_test_script(script_dir, '__main__')
zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
self._check_script(zip_name, run_name, zip_name, zip_name, '',
zipimport.zipimporter)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_zipfile_compiled_timestamp(self):
with support.temp_dir() as script_dir:
script_name = _make_test_script(script_dir, '__main__')
Expand Down Expand Up @@ -313,17 +303,13 @@ def test_zipfile_compiled_unchecked_hash(self):
self._check_script(zip_name, run_name, zip_name, zip_name, '',
zipimport.zipimporter)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_zipfile_error(self):
with support.temp_dir() as script_dir:
script_name = _make_test_script(script_dir, 'not_main')
zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
msg = "can't find '__main__' module in %r" % zip_name
self._check_import_error(zip_name, msg)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_module_in_package(self):
with support.temp_dir() as script_dir:
pkg_dir = os.path.join(script_dir, 'test_pkg')
Expand All @@ -334,17 +320,13 @@ def test_module_in_package(self):
importlib.machinery.SourceFileLoader,
cwd=script_dir)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_module_in_package_in_zipfile(self):
with support.temp_dir() as script_dir:
zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
self._check_script(["-m", "test_pkg.script"], run_name, run_name,
script_dir, 'test_pkg', zipimport.zipimporter,
PYTHONPATH=zip_name, cwd=script_dir)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_module_in_subpackage_in_zipfile(self):
with support.temp_dir() as script_dir:
zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
Expand All @@ -353,8 +335,6 @@ def test_module_in_subpackage_in_zipfile(self):
zipimport.zipimporter,
PYTHONPATH=zip_name, cwd=script_dir)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_package(self):
with support.temp_dir() as script_dir:
pkg_dir = os.path.join(script_dir, 'test_pkg')
Expand All @@ -365,8 +345,6 @@ def test_package(self):
importlib.machinery.SourceFileLoader,
cwd=script_dir)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_package_compiled(self):
with support.temp_dir() as script_dir:
pkg_dir = os.path.join(script_dir, 'test_pkg')
Expand Down Expand Up @@ -435,8 +413,6 @@ def test_issue8202_dash_c_file_ignored(self):
expected = "sys.path[0]==%r" % ''
self.assertIn(expected.encode('utf-8'), out)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_issue8202_dash_m_file_ignored(self):
# Make sure a "-m" file in the current directory
# does not alter the value of sys.path[0]
Expand Down Expand Up @@ -717,8 +693,6 @@ def test_consistent_sys_path_for_direct_execution(self):
out_by_dir_isolated = kill_python(p).decode().splitlines()
self.assertEqual(out_by_dir_isolated, out_by_dir, out_by_name)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_consistent_sys_path_for_module_execution(self):
# This test case ensures that the following both give the same
# sys.path configuration:
Expand Down