Commit graph

17699 commits

Author SHA1 Message Date
Antoine Pitrou
d11f76f8b9 Issue #11761: make tests for gc.get_count() less fragile 2011-04-04 19:52:56 +02:00
Antoine Pitrou
e9b2a4cb59 Issue #11761: make tests for gc.get_count() less fragile 2011-04-04 19:51:33 +02:00
Antoine Pitrou
b35f29a0e0 Issue #11761: make tests for gc.get_count() less fragile 2011-04-04 19:50:42 +02:00
Raymond Hettinger
c800af41c9 Update timeit to use the new string formatting syntax. 2011-04-04 09:28:25 -07:00
Victor Stinner
f7ec1698a2 Reenable regrtest.py timeout (30 min): #11738 and #11753 looks to be fixed 2011-04-04 12:54:33 +02:00
Steven Bethard
58f41c27bc Merge 2011-04-04 02:14:25 +02:00
Steven Bethard
7c8ea37d9b Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 02:10:40 +02:00
Steven Bethard
7cb20a8605 Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 01:53:02 +02:00
Antoine Pitrou
f4e181029f Fix TraceCallbackTests to not use bound parameters (followup to issue #11688) 2011-04-04 01:50:50 +02:00
Antoine Pitrou
fc2e3763c8 Issue #11749: try to fix transient test_socket failure 2011-04-04 01:22:06 +02:00
Antoine Pitrou
43bf045be0 Issue #11749: try to fix transient test_socket failure 2011-04-04 01:21:37 +02:00
Antoine Pitrou
43b21687a5 Improve error message in test 2011-04-04 00:50:01 +02:00
Antoine Pitrou
5bfa0622ec Issue #11688: Add sqlite3.Connection.set_trace_callback(). Patch by Torsten Landschoff. 2011-04-04 00:12:04 +02:00
Victor Stinner
d7edf3b82d Issue #11727, issue #11753, issue #11755: disable regrtest timeout
Disable regrtest timeout until #11753 and #11755 are fixed
2011-04-03 23:46:42 +02:00
Victor Stinner
f77ccc6d7e test_faulthandler: improve the test on dump_tracebacks_later(cancel=True) 2011-04-03 18:45:42 +02:00
Victor Stinner
1b3241fa0c test_faulthandler: fix regex on the check_dump_traceback_threads() traceback
The traceback may contain "_is_owned":

Thread 0x40962b90:
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 220 in _is_owned
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 227 in wait
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 421 in wait
  File "<string>", line 23 in run
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 735 in _bootstrap_inner
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 708 in _bootstrap

Current thread XXX:
  File "<string>", line 10 in dump
  File "<string>", line 28 in <module>
2011-04-03 18:41:22 +02:00
Antoine Pitrou
6dca52772b Issue #11748: try to fix sporadic failures in test_ftplib 2011-04-03 18:29:45 +02:00
Antoine Pitrou
24ce386387 Fix whitespace 2011-04-03 17:08:49 +02:00
Antoine Pitrou
37dc5f85b8 Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept
file-like objects using a new `fileobj` constructor argument.  Patch by
Nadeem Vawda.
2011-04-03 17:05:46 +02:00
Ezio Melotti
0f535013c5 #11282: add back the fail* methods and assertDictContainsSubset. 2011-04-03 18:02:13 +03:00
Ezio Melotti
b7af620747 #11282: merge with 3.2. 2011-04-03 17:39:19 +03:00
Ezio Melotti
361467e522 #11282: the fail* methods will stay around a few more versions. 2011-04-03 17:37:58 +03:00
Victor Stinner
d91a5caf0d Issue #11727: set regrtest default timeout to 30 minutes 2011-04-01 18:16:36 +02:00
Victor Stinner
305bff1ef5 Issue #11727: set regrtest default timeout to 15 minutes 2011-04-01 15:59:59 +02:00
Victor Stinner
44378d46f6 Issue #11393: signal of user signal displays tracebacks even if tstate==NULL
* faulthandler_user() displays the tracebacks of all threads even if it is
   unable to get the state of the current thread
 * test_faulthandler: only release the GIL in test_gil_released() check
 * create check_signum() subfunction
2011-04-01 15:37:12 +02:00
Victor Stinner
a01ca12a52 Issue #11393: Fix faulthandler.disable() and add a test 2011-04-01 12:56:17 +02:00
Victor Stinner
d727e23243 Issue #11393: The fault handler handles also SIGABRT 2011-04-01 12:13:55 +02:00
Victor Stinner
7ad24e9a73 Issue #11393: test_faulthandler is more tolerant on inaccurate time 2011-03-31 22:35:49 +02:00
R David Murray
a46ed1186f Move assertBytesEqual to base test class, improve it, and hook into assertEqual 2011-03-31 13:11:40 -04:00
Victor Stinner
eb50e51a0f Issue #11393: get more information on assertion error (test_faulthandler) 2011-03-31 19:07:58 +02:00
Victor Stinner
7d648a0cec Issue #11727: Antoine and Arfrever don't like "0 < timeout" style (regrtest.py) 2011-03-31 18:27:50 +02:00
R David Murray
a256bacf91 Move infrastructure into __init__ to lay groundwork for splitting test_email.
The split probably won't happen for a while, but I might as well lay the
groundwork now since I'll be adding new test modules before too long.
2011-03-31 12:20:23 -04:00
Victor Stinner
1940233102 Issue #11393: check that stdout is empty if we use a file 2011-03-31 18:15:52 +02:00
Victor Stinner
0cc8d59069 Issue #11727: add --timeout option to regrtest (disabled by default). 2011-03-31 18:10:13 +02:00
Victor Stinner
4b73988122 regrtest.py checks that child process exit code is zero 2011-03-31 18:02:36 +02:00
R David Murray
28346b8077 Only a few files were opened using findfile; consistently don't use it. 2011-03-31 11:40:20 -04:00
Victor Stinner
05585cbdc8 Issue #11393: test_faulthandler checks the exitcode after the output 2011-03-31 13:29:56 +02:00
Victor Stinner
f048075079 Issue #11393: limit stack overflow test to 100 MB
Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.
2011-03-31 11:34:08 +02:00
Victor Stinner
3c7c355e67 Issue #11557: disable test_logging.test_no_kwargs (fail on most buildbots) 2011-03-31 03:22:15 +02:00
Victor Stinner
0862d6ed8f Issue #11393: Disable test_stack_overflow of test_faulthandler 2011-03-31 02:05:54 +02:00
Victor Stinner
bb14b37044 Issue #11393: reenable all tests in regrtest.py (wooops, sorry Antoine) 2011-03-31 01:34:22 +02:00
Victor Stinner
024e37adcc Issue #11393: Add the new faulthandler module 2011-03-31 01:31:06 +02:00
Antoine Pitrou
d85456279f Issue #11618: Fix the timeout logic in threading.Lock.acquire() under
Windows.
2011-03-31 01:03:10 +02:00
Antoine Pitrou
7899acfc23 Issue #11618: Fix the timeout logic in threading.Lock.acquire() under
Windows.
2011-03-31 01:00:32 +02:00
Kristjan Valur Jonsson
8c5b748026 Merge 2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson
d05595697d Merge 3.1 2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson
3c136e19b9 Merge 2011-03-30 11:39:24 +00:00
Kristjan Valur Jonsson
978da33c7a Merge 3.2 2011-03-30 11:32:06 +00:00
Kristjan Valur Jonsson
fa3edbed25 Merge 3.1 2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson
35722a9376 Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00