oft.SqlServer.IntegrationServices.Graph of assembly Microsoft.DataTransformationServices.Controls, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
08/22/2018 04:37:22.279 [6716]: Failed to load dependency Microsoft.DataTransformationServices.Design of assembly Microsoft.DataTransformationServices.Controls, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
08/22/2018 04:37:22.279 [6716]: Failed to load dependency Microsoft.DataWarehouse of assembly Microsoft.DataTransformationServices.Controls, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
08/22/2018 04:37:22.284 [6716]: Failed to load dependency ConnectionDlg of assembly Microsoft.SqlServer.Management.MultiServerConnection, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
08/22/2018 04:37:23.568 [6716]: Failed to load dependency System.Data.SqlServerCe of assembly Microsoft.SqlServer.SqlCEDest, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
08/22/2018 04:37:24.025 [6716]: Failed to load dependency Microsoft.DataWarehouse of assembly Microsoft.SqlServer.MaintenancePlanTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
08/22/2018 04:37:40.562 [6716]: Service work was interrupted due to the following reason(s): CLIENT_INTERRUPT (Mask: 0x02)
08/22/2018 04:39:05.081 [6716]: Processing work for priority 3
08/22/2018 04:39:05.082 [6716]: Assemblies to compile: 32
08/22/2018 04:39:05.148 [6716]: Failed to load the runtime. (Exception from HRESULT: 0x80131700). Assembly C:\Program Files\Microsoft SQL Server\110\DTS\Binn\Microsoft.SqlServer.ForEachFileEnumeratorWrap.dll requires version v4.0 of the runtime to run.
Assembly will be compiled once the correct runtime is installed.
08/22/2018 04:39:05.151 [6716]: Failed to load the runtime. (Exception from HRESULT: 0x80131700). Assembly C:\Program Files\Microsoft SQL Server\110\DTS\Binn\Microsoft.SqlServer.SQLTaskConnectionsWrap.dll requires version v4.0 of the runtime to run.
Assembly will be compiled once the correct runtime is installed.
08/22/2018 04:39:05.370 [6716]: Failed to load dependency Microsoft.SqlServer.IntegrationServices.Graph of assembly Microsoft.DataTransformationServices.Controls, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The system cannot find the file specifi"""
Test the scalar contructors, which also do type-coercion
"""
from __future__ import division, absolute_import, print_function

import sys
import platform
import numpy as np

from numpy.testing import (
    run_module_suite,
    assert_equal, assert_almost_equal, assert_raises, assert_warns,
    dec
)

class TestFromString(object):
    def test_floating(self):
        # Ticket #640, floats from string
        fsingle = np.single('1.234')
        fdouble = np.double('1.234')
        flongdouble = np.longdouble('1.234')
        assert_almost_equal(fsingle, 1.234)
        assert_almost_equal(fdouble, 1.234)
        assert_almost_equal(flongdouble, 1.234)

    def test_floating_overflow(self):
        """ Strings containing an unrepresentable float overflow """
        fhalf = np.half('1e10000')
        assert_equal(fhalf, np.inf)
        fsingle = np.single('1e10000')
        assert_equal(fsingle, np.inf)
        fdouble = np.double('1e10000')
        assert_equal(fdouble, np.inf)
        flongdouble = assert_warns(RuntimeWarning, np.longdouble, '1e10000')
        assert_equal(flongdouble, np.inf)

        fhalf = np.half('-1e10000')
        assert_equal(fhalf, -np.inf)
        fsingle = np.single('-1e10000')
        assert_equal(fsingle, -np.inf)
        fdouble = np.double('-1e10000')
        assert_equal(fdouble, -np.inf)
        flongdouble = assert_warns(RuntimeWarning, np.longdouble, '-1e10000')
        assert_equal(flongdouble, -np.inf)

    @dec.knownfailureif((sys.version_info[0] >= 3) or
                        (sys.platform == "win32" and
                         platform.architecture()[0] == "64bit"),
                        "numpy.intp('0xff', 16) not supported on Py3, "
                        "as it does not inherit from Python int")
    def test_intp(self):
        # Ticket #99
        i_width = np.int_(0).nbytes*2 - 1
        np.intp('0x' + 'f'*i_width, 16)
        assert_raises(OverflowError, np.intp, '0x' + 'f'*(i_width+1), 16)
        assert_raises(ValueError, np.intp, '0x1', 32)
        assert_equal(255, np.intp('0xFF', 16))


class TestFromInt(object):
    def test_intp(self):
        # Ticket #99
        assert_equal(1024, np.intp(1024))

    def test_uint64_from_negative(self):
        assert_equal(np.uint64(-2), np.uint64(18446744073709551614))


if __name__ == "__main__":
    run_module_suite()
