Daniel Hahler
f36f9d2698
tests: fix/clarify expect for Pdb
...
`expect()` expects an regular expression, so "Pdb" is equivalent to
"(Pdb)".
But instead of escaping the parenthesis this patch removes them, to
allow for matching "(Pdb++)", too.
2018-10-10 20:50:49 +02:00
Daniel Hahler
e7eb7e799b
logging: del item.catch_log_handler only in teardown
...
Without this caplog.record_tuples etc is not available anymore when using
`--pdb`.
2018-09-19 17:17:47 +02:00
Anthony Sottile
8bb8b91357
pyupgrade 1.4: tests
2018-08-22 18:47:21 -07:00
Jeffrey Rackauckas
067de257e1
Fix test_pdb.py with pexpect
2018-07-02 21:03:21 -07:00
Jeffrey Rackauckas
4a925ef5e9
Fixing bug in test.
2018-07-02 20:29:59 -07:00
Jeffrey Rackauckas
2f1a2cf07f
Fixing --trace test.
2018-07-02 19:55:08 -07:00
Jeffrey Rackauckas
6cc4fe2412
Fixing bad indentation
2018-07-02 19:53:46 -07:00
Jeffrey Rackauckas
10a8691eca
Add support for yielded functions.
2018-07-02 19:46:26 -07:00
Jeffrey Rackauckas
bc268a58d1
Adding needed newline
2018-07-01 20:22:50 -07:00
Jeffrey Rackauckas
0b70477930
Fix linting issues.
2018-07-01 20:18:00 -07:00
Jeffrey Rackauckas
533f4cc10c
Fix test to pass
2018-06-30 21:36:27 -07:00
Jeffrey Rackauckas
952bbefaac
Add initial test.
2018-06-30 18:26:58 -07:00
Anthony Sottile
cbaa7dd56a
Upgrade pre-commit hooks except pyupgrade
2018-06-26 06:35:27 -07:00
Ronny Pfannschmidt
703e4b11ba
run black
2018-05-23 16:48:46 +02:00
Bruno Oliveira
1a880be85b
Remove unused import to fix linting
2018-05-01 19:08:29 -03:00
Brian Maissy
c258fe1459
--pdb treats KeyboardInterrupt as exception
2018-05-02 00:58:35 +03:00
Ronny Pfannschmidt
2241c98b18
Merge pull request #3331 from tonybaloney/breakpoint_support
...
Support for the new builtin breakpoint function in Python 3.7
2018-04-10 07:15:29 +02:00
Bruno Oliveira
0762666bd1
Remove unused pytestPDB import
2018-04-03 08:58:40 -03:00
Anthony Shaw
4d847593b3
remove a test that would fail because pytest is being used to test itself
2018-04-03 10:40:56 +10:00
Bruno Oliveira
804392e5f2
Fix tests that check that breakpoint function is configured/restored
...
* Execute pytest in a subprocess in cases of tests which change global
state
* Parametrize with --pdb and without the flag
2018-03-28 20:19:28 -03:00
Anthony Shaw
09e5a226dc
add broken test
2018-03-29 09:03:20 +11:00
Anthony Shaw
3998b70ff6
add test for custom environment variable
2018-03-28 09:02:37 +11:00
Anthony Shaw
f1f4c8c104
updates for code review recommendations
2018-03-27 17:38:17 +11:00
Anthony Shaw
e97bd87ee2
fix assertion when hypothesis is installed (which is should be for developing in pytest)
2018-03-23 16:24:15 +11:00
Anthony Shaw
242fb7852b
linting and removed double test
2018-03-23 15:39:34 +11:00
Anthony Shaw
db581eabcb
add tests to validate that --pdbcls custom debugger classes will be called when breakpoint() is used
2018-03-23 15:30:05 +11:00
Anthony Shaw
a1ff758d0d
"Added acceptance tests for configuration of sys.breakpointhook and resetting back when system default (pdb) is used""
2018-03-23 14:18:56 +11:00
Anthony Shaw
5a53b9aabb
move tests to test_pdb
2018-03-22 20:40:35 +11:00
Thomas Hisch
0f58fc881b
Add pdb test with disabled logging plugin
...
Implement the test from #3210 , which was not merged yet, because the PR was
abandoned in favor or #3234 .
2018-02-22 19:26:46 +01:00
Bruno Oliveira
7a62619a75
Merge remote-tracking branch 'upstream/master' into features
2018-02-21 10:39:55 -03:00
Thomas Hisch
51ece00923
Add captured-log support to --show-capture
...
Fixes : #3233
2018-02-18 20:18:37 +01:00
Bruno Oliveira
9d879bee36
Merge pull request #3215 from pytest-dev/bugfix/985/disable-output-capturing-in-doctest
...
Disable output capturing in doctest
2018-02-17 18:39:32 -02:00
Brian Maissy
069f32a8c4
print captured logs before entering pdb
2018-02-17 20:32:49 +02:00
Bruno Oliveira
6bc45d158d
Merge pull request #3186 from brianmaissy/bugfix/print_captured_stdout_before_entering_pdb
...
Added printing of captured stdout before entering pdb
2018-02-15 19:38:23 -02:00
Jason R. Coombs
247cdb835a
Remove xfail; tests now pass on macOS. Ref #985 .
2018-02-13 12:41:19 -05:00
Brian Maissy
7656fc8320
Added printing of captured stdout and stderr before entering pdb
2018-02-12 23:17:51 +02:00
Brian Maissy
e64feaba7a
xfail is better than skip
2018-02-03 23:28:37 +02:00
Brian Maissy
74633815aa
skip failing pdb/doctest test on mac
2018-02-03 23:24:11 +02:00
Brian Maissy
4a3863c2e2
use flush in order to avoid hanging on mac
2018-01-14 23:00:23 +02:00
Jurko Gospodnetić
7feab7391d
simplify test_pdb_collection_failure_is_shown test data setup code
2017-12-09 13:34:56 +01:00
Andras Tim
7248b759e8
Fixed E303 flake8 errors
...
too many blank lines (3)
2017-07-17 01:44:23 +02:00
Andras Tim
195a816522
Fixed E265 flake8 errors
...
block comment should start with ‘# ‘
2017-07-17 01:44:22 +02:00
Andras Tim
8f3eb6dfc7
Fixed E261 flake8 errors
...
at least two spaces before inline comment
2017-07-17 01:44:22 +02:00
Andras Tim
2e8caefcab
Fixed E225 flake8 errors
...
missing whitespace around operator
2017-07-17 01:44:22 +02:00
Bruno Oliveira
42a5d6bdfa
Add __future__ imports to all pytest modules
...
This prevents silly errors from creeping in Python 2 when testing in Python 3
2017-03-16 22:45:40 -03:00
Bruno Oliveira
1e0cf5ce4d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
...
# Conflicts:
# AUTHORS
# CHANGELOG.rst
# _pytest/pytester.py
2017-03-10 15:54:05 -03:00
Michal Wajszczuk
fb0b90646e
New-style classes implemented for python 2.7 - #2147
2017-02-16 20:28:17 +01:00
mbyt
ad56cd8027
extract a _handle_skip method, secure PY2 branch
2017-02-02 05:01:51 +01:00
mbyt
d1c725078a
Allow to skip unittests if --pdb active
...
closes #2137
2017-01-31 04:47:31 +01:00
Bruno Oliveira
5ce551e469
Merge pull request #2075 from pytest-dev/master
...
Merge master into features after fixing flake8 errors
2016-11-22 14:10:31 -02:00