-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
No module named winreg
: windows python2.7
#1315
Comments
Seems it's https://docs.python.org/2/library/_winreg.html... can you alter the import and test? |
yeah, working on a patch for it -- not sure what's going on with our CI though :S |
for some reason 3.7 matches 2.7 during specification lookup... |
I can also reproduce the version incorrectness as well: $ tox -e py27
GLOB sdist-make: C:\Users\Anthony\AppData\Local\Temp\x\tox\aspy.yaml\setup.py
py27 inst-nodeps: C:\Users\Anthony\AppData\Local\Temp\x\tox\aspy.yaml\.tox\.tmp\package\1\aspy.yaml-1.2.0.zip
py27 installed: aspy.yaml==1.2.0,atomicwrites==1.3.0,attrs==19.1.0,cfgv==1.6.0,colorama==0.4.1,coverage==4.5.3,entrypoints==0.3,flake8==3.7.7,identify==1.4.3,importlib-metadata==0.13,mccabe==0.6.1,more-itertools==7.0.0,nodeenv==1.3.3,pluggy==0.11.0,pre-commit==1.16.1,py==1.8.0,pycodestyle==2.5.0,pyflakes==2.1.1,pytest==4.5.0,PyYAML==5.1,six==1.12.0,toml==0.10.0,virtualenv==16.6.0,wcwidth==0.1.7,zipp==0.5.1
py27 run-test-pre: PYTHONHASHSEED='953'
py27 run-test: commands[0] | coverage erase
py27 run-test: commands[1] | coverage run -m pytest tests
============================= test session starts =============================
platform win32 -- Python 3.7.1, pytest-4.5.0, py-1.8.0, pluggy-0.11.0
cachedir: aspy.yaml\.tox\py27\.pytest_cache
rootdir: C:\Users\Anthony\AppData\Local\Temp\x\tox, inifile: tox.ini, testpaths: tests
collected 3 items
tests\yaml_test.py ... [100%]
========================== 3 passed in 0.07 seconds ===========================
py27 run-test: commands[2] | coverage report --show-missing --fail-under 100
Name Stmts Miss Branch BrPart Cover Missing
-------------------------------------------------------------------
aspy\__init__.py 1 0 0 0 100%
aspy\yaml\__init__.py 20 0 0 0 100%
tests\__init__.py 0 0 0 0 100%
tests\yaml_test.py 14 0 0 0 100%
-------------------------------------------------------------------
TOTAL 35 0 0 0 100%
py27 run-test: commands[3] | pre-commit install
pre-commit installed at .git\hooks\pre-commit
___________________________________ summary ___________________________________
py27: commands succeeded
congratulations :) |
The https://github.com/tox-dev/tox/blob/master/src/tox/interpreters/py_spec.py#L31 spec matching looks ok though
|
If you run it with -vv |
this one is a bit rough to debug, seems output is gobbled somewhere But with this patch: def satisfies(self, req):
+ import pprint
+ print('*' * 79)
+ pprint.pprint(vars(req))
+ pprint.pprint(vars(self))
+ print('*' * 79)
if req.is_abs and self.is_abs and self.path != req.path: I get this output:
which at least looks right 🤔 |
gotta run to a meeting, I'll poke at this in a bit |
found it #1317 ... 🤦♂ |
Seems this module is not present in python2.7:
The text was updated successfully, but these errors were encountered: