Skip to content

test_import raises a DeprecationWarning #118079

@Eclips4

Description

@Eclips4

Bug report

Bug description:

./python.exe -m test -q test_import
Using random seed: 828001900
0:00:00 load avg: 15.22 Run 1 test sequentially
/Users/admin/Projects/cpython/Lib/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method _id of <test.test_import.SubinterpImportTests testMethod=test_disallowed_reimport>>)
  return self.run(*args, **kwds)
/Users/admin/Projects/cpython/Lib/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method _id of <test.test_import.SubinterpImportTests testMethod=test_single_init_extension_compat>>)
  return self.run(*args, **kwds)
/Users/admin/Projects/cpython/Lib/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method _id of <test.test_import.SubinterpImportTests testMethod=test_singlephase_check_with_setting_and_override>>)
  return self.run(*args, **kwds)

== Tests result: SUCCESS ==

Total duration: 3.6 sec
Total tests: run=97 skipped=3
Total test files: run=1/1
Result: SUCCESS

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions