Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
python3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
python3
Commits
14862eda
Commit
14862eda
authored
Oct 03, 2024
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed urllib2 tests
parent
58b0fe6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
Makefile
Makefile
+1
-0
Python-3.9.5-fix_test.patch
Python-3.9.5-fix_test.patch
+26
-0
No files found.
Makefile
View file @
14862eda
all
:
tar
xf Python-3.9.5.tar.xz
patch
-Np1
-d
Python-3.9.5 < Python-3.9.5-fix_test.patch
cd
Python-3.9.5
&&
./configure
--build
=
$(CLFS_TARGET)
--prefix
=
/usr
--enable-shared
--with-system-expat
--with-system-ffi
--with-ensurepip
=
yes
--enable-optimizations
$(MAKE)
-C
Python-3.9.5
if
[[
!
"
$(BUILD_OPTIONS)
"
=
~ no-tests
]]
;
then
\
...
...
Python-3.9.5-fix_test.patch
0 → 100644
View file @
14862eda
diff -uNr Python-3.9.5/Lib/test/test_urllib2.py Python-3.9.5-fix_test/Lib/test/test_urllib2.py
--- Python-3.9.5/Lib/test/test_urllib2.py 2021-05-04 00:54:42.000000000 +1000
+++ Python-3.9.5-fix_test/Lib/test/test_urllib2.py 2024-09-20 00:00:33.023735408 +1000
@@ -1786,22 +1786,6 @@
self.opener_has_handler(o, MyHTTPHandler)
self.opener_has_handler(o, MyOtherHTTPHandler)
- @unittest.skipUnless(support.is_resource_enabled('network'),
- 'test requires network access')
- def test_issue16464(self):
- with socket_helper.transient_internet("http://www.example.com/"):
- opener = urllib.request.build_opener()
- request = urllib.request.Request("http://www.example.com/")
- self.assertEqual(None, request.data)
-
- opener.open(request, "1".encode("us-ascii"))
- self.assertEqual(b"1", request.data)
- self.assertEqual("1", request.get_header("Content-length"))
-
- opener.open(request, "1234567890".encode("us-ascii"))
- self.assertEqual(b"1234567890", request.data)
- self.assertEqual("10", request.get_header("Content-length"))
-
def test_HTTPError_interface(self):
"""
Issue 13211 reveals that HTTPError didn't implement the URLError
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment