| Server IP : 121.121.20.254 / Your IP : 216.73.216.59 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/test/__pycache__/ |
Upload File : |
R
>lqj c � � ] PH s ] QHGs \O Q2 s Q Q\ O
2 s\Q6X c \ O 2 P! P! )� )�warnings_helper�
nturl2pathc �8 ` � \ sQ s] s n QsQ sQ sQ sQsU s P! )�NTURL2PathTestz&Test pathname2url() and url2pathname()c �� � Q oQo[ O U2 oU O V#QU8 QU8 02 [ O U2 oU O VQU8 QU8 02 P! )zparts\of\a\pathzparts/of/a/pathzpathname2url() failed; z != zurl2pathame() failed; �r �pathname2url�assertEqual�url2pathname)�self�
expected_path�expected_url�results & �)C:\Python315\\Lib\test\test_nturl2path.py�
test_basic�NTURL2PathTest.test_basic sf � �*�
�(���(�(��7������v� �,�0� 1� �(�(��6������� �-�1� 2� c �� � [ O oU O U Q 2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q 2 U O U Q
2 Q2 U O U Q2 Q
2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q 2 U O U Q!2 Q"2 U O U Q#2 Q$2 U O U Q%2 Q2 U O U Q"2 Q"2 U O U Q&2 Q2 U O U Q'2 Q2 , Q(NoSF D. oU O U [ O U2 2 U2 J0 P! ))z
\\?\C:\dirz ///C:/dirz\\?\unc\server\share\dirz//server/share/dir�C:�///C:�C:\�///C:/zc:\a\b.cz///c:/a/b.czC:\a\b.cz///C:/a/b.cz C:\a\b.c\z///C:/a/b.c/z C:\a\\b.cz///C:/a//b.cz C:\a\b%#cz///C:/a/b%25%23cu C:\a\béz///C:/a/b%C3%A9�C:\foo\bar\spam.foo�///C:/foo/bar/spam.fooz
C:\foo:barz///C:/foo%3Abarzfoo:barz foo%3Abarz
\folder\test\�///folder/test/z\\folder\test\z//folder/test/z\\\folder\test\z
\\some\share\z
//some/share/z\\some\share\a\b.cz//some/share/a/b.cu \\some\share\a\b%#céz//some/share/a/b%25%23c%C3%A9zC:/a/b.cz
//?/C:/dirz//?/unc/server/share/dir)r r r r )r �fn�urls�urls & r �test_pathname2url� NTURL2PathTest.test_pathname2url s6 � �
�
$�
$������,�-�{�;�����<�=�?S�T�����D��7�+�����F��X�.�����L�)�=�9�����L�)�=�9�����N�+�^�<�����N�+�^�<�����M�*�,>�?�����N�+�->�?�����4�5�7O�P�����M�*�,=�>�����I���4�����.�/�1B�C�����0�1�3C�D�����2�3�5F�G�����/�0�/�B�����5�6�8L�M�����:�;�=\�]�����J���7�����0�1�3G�H�����L�)�;�7�����6�7�9M�N�*�� �C����R�
� 7� 7�� <�=�s�C� r c �
� [ O oU O U Q 2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q 2 U O U Q
2 Q2 U O U Q2 Q
2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q2 U O U Q2 Q 2 U O U Q!2 Q"2 U O U Q#2 Q$2 U O U Q%2 Q$2 U O U Q&2 Q$2 U O U Q'2 Q2 U O U Q(2 Q2 U O U Q)2 Q*2 U O U Q+2 Q$2 U O U Q,2 Q-2 U O U Q.2 Q/2 , Q0NoSF D. oU O U [ O U2 2 U2 J0 P! )1�/�\z/C:/r z///C|r r r z/C|//zC:\\z
///C|/pathzC:\pathz
///C/test/z\C\test\z////C/test/z \\C\test\zc:/path/to/filezc:\path\to\filezC:/path/to/filezC:\path\to\filezC:/path/to/file/zC:\path\to\file\zC:/path/to//filezC:\path\to\\filezC|/path/to/filez/C|/path/to/filez///C|/path/to/filez///C|/foo/bar/spam.foor u ///è|/u è:\z//host/share/spam.txt:eggsz\\host\share\spam.txt:eggsz///c:/spam.txt:eggszc:\spam.txt:eggsz//server/path/to/filez\\server\path\to\filez////server/path/to/filez/////server/path/to/filez//localhost/C:/path/to/filez//localhost/C|/path/to/filez//localhost/path/to/filez
\path\to\filez //localhost//server/path/to/filezC:/foo%2fbarz
C:\foo/barz//server/share/foo%2fbarz\\server\share\foo/bar)r z \C\test\\r )r r
r r )r r �paths�paths & r �test_url2pathname� NTURL2PathTest.test_url2pathname= s� � �
�
$�
$������C��$�'�����F��V�,�����G��d�+�����G��d�+�����H��v�.�����G��h�/�����L�)�:�6�����L�)�=�9�����M�*�O�<�����-�.�0D�E�����-�.�0D�E�����.�/�1G�H�����.�/�1G�H�����-�.�0D�E�����.�/�1E�F�����0�1�3G�H�����4�5�7O�P�����M�*�K�8�����8�9�;[�\�����1�2�4G�H�����3�4�6R�S�����5�6�8T�U�����6�7�9U�V�����9�:�<P�Q�����9�:�<P�Q�����6�7�9K�L�����>�?�A]�^�����N�+�]�;�����6�7�9U�V�)�� �D����R�
� 7� 7�� =�>��E� r � )
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r r r% �__static_attributes__�__classdictcell__)�
__classdict__s @r r r s �� � �0�2�"D�H*F� *Fr r �__main__) �unittest�test.supportr �import_deprecatedr �TestCaser r( �mainr'