Skip to content

Commit 5583e36

Browse files
committed
httpservers only support lf line-end in RustPython
1 parent 9a535bd commit 5583e36

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/test/test_httpservers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ class request_handler(NoLogRequestHandler, CGIHTTPRequestHandler):
615615
pass
616616

617617
linesep = os.linesep.encode('ascii')
618+
# TODO: RUSTPYTHON
619+
linesep = b'\n'
618620

619621
def setUp(self):
620622
BaseTestCase.setUp(self)
@@ -640,7 +642,8 @@ def setUp(self):
640642
# The shebang line should be pure ASCII: use symlink if possible.
641643
# See issue #7668.
642644
self._pythonexe_symlink = None
643-
if os_helper.can_symlink():
645+
# TODO: RUSTPYTHON; dl_nt not supported yet
646+
if os_helper.can_symlink() and sys.platform != 'win32':
644647
self.pythonexe = os.path.join(self.parent_dir, 'python')
645648
self._pythonexe_symlink = support.PythonSymlink(self.pythonexe).__enter__()
646649
else:

0 commit comments

Comments
 (0)