관리-도구
편집 파일: test_dialect.cpython-311.pyc
� �܋f� � �R � d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ d dlm Z d d lm Z d dl mZ d dl mZ d d l m Z d dl mZ d dl mZ d dlmZ G d� dej � � Z G d� dej � � Z G d� dej � � Z G d� dej � � ZdS )� )� assert_raises)�config)�eq_)�fixtures)�ne_)�provide_metadata)�requirements)�Column)�Table� )�exc)�Integer)�literal_column)�select)�String)�compatc �V � e Zd ZdZdZdZed� � � Zej d� � � Z d� ZdS )� ExceptionTestz�Test basic exception wrapping. DBAPIs vary a lot in exception behavior so to actually anticipate specific exceptions from real round trips, we need to be conservative. �eachTc � � t d|t dt dd�� � t dt d� � � � � � d S )N� manual_pk�idTF��primary_key� autoincrement�data�2 �r r r r ��cls�metadatas �x/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/sqlalchemy/testing/suite/test_dialect.py� define_tableszExceptionTest.define_tables sK � � ����4��d�%�H�H�H��6�6�"�:�:�&�&� � � � � � c � � t j � � � 5 }|� � � }|� | j j � � � ddd�� � t t j |j | j j � � � ddd�� � |� � � d d d � � d S # 1 swxY w Y d S )N� �d1�r r )r �db�connect�begin�execute�tablesr �insertr r �IntegrityError�rollback)�self�conn�transs r"