PATH:
usr
/
lib64
/
python2.7
/
test
� ��^c @ ss d Z d d l m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z m Z e j Z e j Z e j e j d � j d � d � Z d e f d � � YZ d e f d � � YZ d e j f d � � YZ d e j f d � � YZ d � Z d e j f d � � YZ d � Z e! d k roe � n d S( s Tests for Lib/fractions.py.i����( t Decimal( t run_unittestN( t copyt deepcopy( t dumpst loadst doublet IEEEs test requires IEEE 754 doublest DummyFloatc B sk e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e Z d Z RS( s8 Dummy float class for testing comparisons with Fractionsc C s+ t | t � s t d � � n | | _ d S( Ns- DummyFloat can only be initialized from float( t isinstancet floatt TypeErrort value( t selfR ( ( s+ /usr/lib64/python2.7/test/test_fractions.pyt __init__ s c C sU t | t j � r+ | t j | j � | � St | t � rM | | j | j � St Sd S( N( R t numberst Rationalt Ft from_floatR R t NotImplemented( R t othert op( ( s+ /usr/lib64/python2.7/test/test_fractions.pyt _richcmp s c C s | j | t j � S( N( R t operatort eq( R R ( ( s+ /usr/lib64/python2.7/test/test_fractions.pyt __eq__% t c C s | j | t j � S( N( R R t le( R R ( ( s+ /usr/lib64/python2.7/test/test_fractions.pyt __le__&