List of commits:
Subject Hash Author Date (UTC)
bpo-30106: Fix test_asyncore.test_quick_connect() (#1234) a2c877c3985aba4adb19755e21f477e1c639cfd9 Victor Stinner 2017-04-21 11:51:53
bpo-30104: configure now detects when cc is clang (#1233) 35f3d240ee5f0958034bd500949b08764e36f4dc Victor Stinner 2017-04-21 10:35:24
bpo-30104: Use -fno-strict-aliasing on clang (#1221) 28205b203a4742c40080b4a2b4b2dcd800716edc Victor Stinner 2017-04-21 09:24:34
remove configure test for inline keyword (#1231) 791dc831198f3ecc1531f8e6f05debf4ce234d00 Benjamin Peterson 2017-04-21 06:52:19
bpo-29191: Add liblzma.vcxproj to pcbuild.sln and other missing entries (#1222) f60c9e54f501065f3be2a4cfb4c387dfa2f243a9 Segev Finer 2017-04-20 23:33:28
Add missing .gitignore entries for VS2015 IntelliSense DB (#1223) 8e675286a92f33837cfffac5914b5175dac5d573 Segev Finer 2017-04-20 23:32:26
bpo-29802: Fix reference counting in module-level struct functions (#1213) 40db90c1ce1a59d5f5f2894bb0ce32110000bf27 Serhiy Storchaka 2017-04-20 18:19:31
Only define get_zone() and get_gmtoff() if needed (#1193) 8f5cdfa9fc1bb6b4d9a33fc281987252f6398430 Victor Stinner 2017-04-20 11:41:09
support.threading_cleanup() log a warning on fail (#1195) d20324a7fab6734bae19b1f070b5c8aae5ff3612 Victor Stinner 2017-04-20 11:40:08
bpo-30108: Restore sys.path in test_site (#1197) b85c136903c6d2368162f7c4a58f258c9c69ead0 Victor Stinner 2017-04-20 11:39:39
bpo-12414: Update code_sizeof() to take in account co_extra memory. (#1168) b4dc6af7a7862a8996cffed30d39d6add5ee58a3 Dong-hee Na 2017-04-20 07:31:17
bpo-30109: Fix reindent.py (GH-1207) 58f3c9dc8f5626abe09ac9738c34f6ba99ce2972 Mariatta 2017-04-20 05:59:20
bpo-10379: Add %char examples to locale.format() docs (GH-1145) 6dbdedb0b18a5ca850ab8ce512fda24d5a9d0688 Berker Peksag 2017-04-20 04:38:43
Remove redundant comma in argparse HOWTO (#1141) 8526fb74edf5ac9ca175b7cdcb0d82bb8780d2cf Berker Peksag 2017-04-20 04:29:35
bpo-30078: Add an example of passing a path to unittest (#1178) f7e62cf8adfb8ab6a6a870903defe8ff218a0383 Louie Lu 2017-04-20 03:46:59
bpo-30106: Fix tearDown() of test_asyncore (#1194) 11470b6dcdbc170779499a4a040b93c842a0d194 Victor Stinner 2017-04-20 00:55:39
bpo-29887: test_normalization handles PermissionError (#1196) d13d54748d3a7db023d9db37223ea7d40bb8f8e3 Victor Stinner 2017-04-20 00:39:59
regrtest: always show before/after of modified env (#1192) ec4b17239d899550be4ee6104b61751bb3c70382 Victor Stinner 2017-04-19 22:57:30
Fix/optimize test_asyncore.test_quick_connect() (#1188) 7b9619ae249ed637924d1c76687b411061753e5a Victor Stinner 2017-04-19 21:42:46
bpo-30030: Revert f50354ad (tempfile) (#1187) 1e62bf145b4865d03a29a5720a4eb84c321a9829 Victor Stinner 2017-04-19 20:59:51
Commit a2c877c3985aba4adb19755e21f477e1c639cfd9 - bpo-30106: Fix test_asyncore.test_quick_connect() (#1234)
test_quick_connect() runs a thread up to 50 seconds, whereas the
socket is connected in 0.2 second and then the thread is expected to
end in less than 3 second. On Linux, the thread ends quickly because
select() seems to always return quickly. On FreeBSD, sometimes
select() fails with timeout and so the thread runs much longer than
expected.

Fix the thread timeout to fix a race condition in the test.
Author: Victor Stinner
Author date (UTC): 2017-04-21 11:51
Committer name: GitHub
Committer date (UTC): 2017-04-21 11:51
Parent(s): 35f3d240ee5f0958034bd500949b08764e36f4dc
Signer:
Signing key:
Signing status: N
Tree: 142f2a09e27d1ea33df0703f5ab61c738dcc2cc5
File Lines added Lines deleted
Lib/test/test_asyncore.py 2 1
File Lib/test/test_asyncore.py changed (mode: 100644) (index 1e276ec58b..dc2f716e0b)
... ... class BaseTestAPI:
781 781 self.skipTest("test specific to AF_INET and AF_INET6") self.skipTest("test specific to AF_INET and AF_INET6")
782 782
783 783 server = BaseServer(self.family, self.addr) server = BaseServer(self.family, self.addr)
784 # run the thread 500 ms: the socket should be connected in 200 ms
784 785 t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1, t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1,
785 count=500))
786 count=5))
786 787 t.start() t.start()
787 788 try: try:
788 789 with socket.socket(self.family, socket.SOCK_STREAM) as s: with socket.socket(self.family, socket.SOCK_STREAM) as s:
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main