| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 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/test_capi/__pycache__/ |
Upload File : |
R
>lqj� c �� � ] PH s ] PHs] PHs] PHs] PHs] QHGsGs \O Q2 s Q Q\O 2 s\Q6X c \O 2 P! P! )� )�
import_helper� os_helper�_testlimitedcapic � ` � \ sQ s]s n Qs\Q 2 sQ s\Q 2 s QQ ks
Q s\O \O Q2 Q 2 sQ sQ
sQ sQ sQ
sQsU sP! )�CapsuleImportTestszTests for PyCapsule_Import().c �� � U O [ O 2 2 9pm U O [ O
U2 2 U O
[ O O UQ 2 Q2 [ O O UQ2 o[ O U2 U O
[ O O UQ2 P2 U O
[ O O UQ2 Q2 [ O O UQ2 o[ O U2 U O
[ O O UQ2 Q2 U O
[ O O UQ2 Q2 U O
[ O O UQ 2 Q
2 [ O 2 P! )zcapsule_mod.pyu�
import _testlimitedcapi
capsule = _testlimitedcapi.capsule_new('capsule_mod.capsule')
капсула = _testlimitedcapi.capsule_new('capsule_mod.капсула')
mismatched = _testlimitedcapi.capsule_new('other.name')
nonutf8 = _testlimitedcapi.capsule_new(b'capsule_mod.nonutf8\xff')
nullname = _testlimitedcapi.capsule_new(None)
not_capsule = 42
class ns:
nested = _testlimitedcapi.capsule_new('capsule_mod.ns.nested')
def __getattr__(name):
if name == 'bad_attr':
raise FloatingPointError('bad attribute')
raise AttributeError(name)
�capsule_pkgz__init__.pyzsub.pyz|
import _testlimitedcapi
capsule = _testlimitedcapi.capsule_new('capsule_pkg.sub.capsule')
�capsule_autopkgzfrom . import sub
z�
import _testlimitedcapi
capsule = _testlimitedcapi.capsule_new('capsule_autopkg.sub.capsule')
zcapsule_broken.pyz1/0
)
�enterClassContextr �temp_dir�tmpr �
DirsOnSysPath�
write_file�os�path�join�mkdir� importlib�invalidate_caches)�clsr �pkg�autopkgs & �0C:\Python315\\Lib\test\test_capi\test_capsule.py�
setUpClass�CapsuleImportTests.setUpClass sK � ��-�-�i�.@�.@�.B�C�C��g����m�9�9�#�>�?����r�w�w�|�|�C�)9�:� =�
�$ �g�g�l�l�3�
�.��
����
����r�w�w�|�|�C��7��<����r�w�w�|�|�C��2� 5�
�
�'�'�,�,�s�$5�6��
��������r�w�w�|�|�G�]�;�=R�S����r�w�w�|�|�G�X�6� 9�
�
���r�w�w�|�|�C�)<�=�w�G��#�#�%� c �\ � QF D# oU O [ O U2 J% P! )�capsule_mod)r �capsule_pkg.subr zcapsule_autopkg.subr �capsule_broken)�
addCleanupr �unload��self�names & r �setUp�CapsuleImportTests.setUp7 s$ � �'�D�
�O�O�M�0�0�$�7�'r c � � [ U Q QQ5 9^tt^ 2 oUO [ O U2 2 PPP2 P! ) % f h P! 9 h)�wzutf-8)�encoding)�open�write�textwrap�dedent)r �source�fs && r r �CapsuleImportTests.write_file= s7 � �
�$��g�
.�
.�!�
�G�G�H�O�O�F�+�,� /�
.�
.�
.�s �&A�A �A c �R � U O [ O V2 U2 P! )N)�assertEqualr �PyCapsule_Import)r# r$ �no_blocks &&&r �check_import�CapsuleImportTests.check_importB s � �
���)�:�:�4�J�D�Qr c �� � U O Q [ O 2 U O Q2 U O Q2 U O Q2 U O Q]2 P! )r zcapsule_mod.capsulezcapsule_mod.ns.nestedu capsule_mod.капсула)�assertNotIn�sys�modulesr5 �r# s &r �test_import�CapsuleImportTests.test_importG sT � ��������4����/�0����1�2����6�7����/��3r z$requires non-ASCII file name supportc �D � [ O oU O [ O O U O UQ * 2 QU Q02 [ O 2 U O [ O U2 U O U Q02 P! )z.pyzZ
import _testlimitedcapi
capsule = _testlimitedcapi.capsule_new('z.capsule')
z.capsule)
r �TESTFN_NONASCIIr r r r r r r r r r! r5 r"