Log file Viewer
Help
|
Karma
| Search:
#pypa-dev logs for Thursday the 1st of January, 2015
(
Back to #pypa-dev overview
) (
Back to channel listing
) (
Animate logs
)
[
16:00:04
] <
philadams
> hi all. quick question (sorry if i missed this answer last time)
[
16:00:25
] <
philadams
> testing a new pip command that has a side effect (opening url in browser)
[
16:00:37
] <
philadams
> and don't want to have that actually happen when running tests
[
16:00:47
] <
philadams
> in the command file, i import from webbrowser open_new_tab
[
16:01:06
] <
philadams
> and then in the test file, set open_new_tab to a do-nothing function
[
16:01:27
] <
philadams
> but i think bc of the virtual env in pip's scripttest, it's not using my do-nothing open func
[
16:01:34
] <
philadams
> any suggestions?
[
16:50:09
] <
pmxbot
> jaraco pushed 12 commits to setuptools (https://bitbucket.org/pypa/setuptools/) :
[
16:50:09
] <
pmxbot
> Report skipped tests
[
16:50:09
] <
pmxbot
> Ported window wrapper tests from doctest to unit tests.
[
16:50:09
] <
pmxbot
> Simplify script creation with context managers and leveraging local variables for the template population.
[
16:50:09
] <
pmxbot
> More context managers
[
16:50:09
] <
pmxbot
> Update docs
[
16:50:09
] <
pmxbot
> Extract prep_script method
[
16:50:09
] <
pmxbot
> Leverage LocalPath characteristics of tmpdir.
[
16:50:09
] <
pmxbot
> Reindent for clarity
[
16:50:09
] <
pmxbot
> Remove additional tests, no longer relevant.
[
16:50:09
] <
pmxbot
> Convert DependsTests to pytest discovered tests.
[
16:50:09
] <
pmxbot
> Unify detection of bytecode
[
16:50:09
] <
pmxbot
> Removed remainder of unittest dependence in setuptools/tests/__init__.py
[
20:22:11
] <
philadams
> cannot figure out a good way of monkeypatching given pip's venv-based testing
[
20:22:26
] <
philadams
> but, several of pip's functional and unit tests just directly use pytest features
[
20:22:40
] <
philadams
> both _pytest.monkeytest and _pytest.capture are useful here
[
20:22:54
] <
philadams
> (just adding resources for others with similar questions!)
[
20:23:32
] <
sigmavirus24
> philadams: do you monkeypatch (instead of monkeytest)?
[
20:23:37
] <
sigmavirus24
> *you mean
[
21:18:20
] <
philadams
> @sigmavirus24 right. monkeypatch
[
21:18:45
] <
philadams
> and even better, with pytest you can just add a 'monkeypatch' argument to your tests, and use it right there without importing/instantiating
[
21:18:50
] <
philadams
> w00t
[
22:40:40
] <
pmxbot
> jaraco pushed 23 commits to setuptools (https://bitbucket.org/pypa/setuptools/) :
[
22:40:40
] <
pmxbot
> Convert test_dist_info to pytest form
[
22:40:40
] <
pmxbot
> Use contexts for opening files
[
22:40:40
] <
pmxbot
> Extract commonality of metadata template.
[
22:40:40
] <
pmxbot
> I'm pretty sure this deviance was incidental.
[
22:40:40
] <
pmxbot
> Extract variables to nicen indentation.
[
22:40:40
] <
pmxbot
> Build a dict in a generator expression.
[
22:40:40
] <
pmxbot
> Build requires using map
[
22:40:40
] <
pmxbot
> Use pytest for skips
[
22:40:40
] <
pmxbot
> Remove unused imports
[
22:40:40
] <
pmxbot
> Use serve_forever and shutdown, now available.
[
22:40:40
] <
pmxbot
> Use property
[
22:40:40
] <
pmxbot
> Remove unused imports
[
22:40:40
] <
pmxbot
> Remove unused imports
[
22:40:40
] <
pmxbot
> Use context opener
[
22:40:40
] <
pmxbot
> Move contexts to their own module
[
22:40:40
] <
pmxbot
> Use quiet context instead of copy pasta.
[
22:40:40
] <
pmxbot
> Python 2.6 is required
[
22:40:40
] <
pmxbot
> Replace setup and teardown with pytest fixtures.
[
22:40:40
] <
pmxbot
> Correct naming artifact.
[
22:40:40
] <
pmxbot
> Use namespacing for easier reading
[
22:40:40
] <
pmxbot
> Remodel comment as docstring.
[
22:40:40
] <
pmxbot
> Use pytest for test discovery in build_ext
[
22:40:40
] <
pmxbot
> Remove superfluous comment