[Webkit-unassigned] [Bug 224627] New: scm_unittest.py fails at import-time on Python 2
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 15 15:14:52 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224627
Bug ID: 224627
Summary: scm_unittest.py fails at import-time on Python 2
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gsnedders at apple.com
This isn't run by default (because it's too slow), but as a result we don't even try to import the tests and this has led to us regressing our ability to run them.
Notably, ./Tools/Scripts/test-webkitpy-python2 --all currently fails:
Checking imports ...Failed to import webkitpy.common.checkout.scm.scm_unittest:
Failed to import webkitpy.common.checkout.scm.scm_unittest:
Traceback (most recent call last):
Traceback (most recent call last):
File "/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/webkitpy/test/main.py", line 290, in _check_imports
File "/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/webkitpy/test/main.py", line 290, in _check_imports
__import__(name)
__import__(name)
File "/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py", line 38, in <module>
File "/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py", line 38, in <module>
import pathlib
import pathlib
ImportError: No module named pathlib
ImportError: No module named pathlib
As part of my medium-term goal of migrating us to using pytest where we're likely to skip specific slow tests rather than merely doing this at a module level, we should make sure this is importable.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210415/fbb4420c/attachment.htm>
More information about the webkit-unassigned
mailing list