mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #18702: All skipped tests now reported as skipped.
This commit is contained in:
parent
834856aca9
commit
7908068627
21 changed files with 908 additions and 883 deletions
|
@ -271,11 +271,10 @@ class WarnTests(BaseTest):
|
|||
finally:
|
||||
warning_tests.__file__ = filename
|
||||
|
||||
@unittest.skipUnless(hasattr(sys, 'argv'), 'test needs sys.argv')
|
||||
def test_missing_filename_main_with_argv(self):
|
||||
# If __file__ is not specified and the caller is __main__ and sys.argv
|
||||
# exists, then use sys.argv[0] as the file.
|
||||
if not hasattr(sys, 'argv'):
|
||||
return
|
||||
filename = warning_tests.__file__
|
||||
module_name = warning_tests.__name__
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue