Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
0d02aac3
Commit
0d02aac3
authored
Oct 31, 2021
by
Pavel Vainerman
Committed by
Pavel Vainerman
Oct 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
used catch2 instead catch
parent
e2aa43c8
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
75 additions
and
64 deletions
+75
-64
libuniset2.spec
conf/libuniset2.spec
+5
-2
configure.ac
configure.ac
+2
-2
run_test_uresolver.cc
extensions/HttpResolver/tests/run_test_uresolver.cc
+4
-4
test_uresolver.cc
extensions/HttpResolver/tests/test_uresolver.cc
+1
-1
run_test_iocontrol.cc
extensions/IOControl/tests/run_test_iocontrol.cc
+2
-2
tests.cc
extensions/LogicProcessor/tests/tests.cc
+2
-2
run_test_mbtcpmaster.cc
extensions/ModbusMaster/tests/run_test_mbtcpmaster.cc
+4
-4
run_test_mbtcpmultimaster.cc
extensions/ModbusMaster/tests/run_test_mbtcpmultimaster.cc
+4
-4
tests_with_sm.cc
extensions/ModbusSlave/tests/tests_with_sm.cc
+4
-4
tests.cc
extensions/SharedMemory/tests/tests.cc
+2
-2
tests_individual_process.cc
extensions/UNetUDP/tests/tests_individual_process.cc
+2
-2
tests_multicast_with_sm.cc
extensions/UNetUDP/tests/tests_multicast_with_sm.cc
+2
-2
tests_with_sm.cc
extensions/UNetUDP/tests/tests_with_sm.cc
+2
-2
tests_with_sm.cc
extensions/UWebSocketGate/tests/tests_with_sm.cc
+4
-4
VTypes.h
extensions/include/VTypes.h
+13
-4
test_ui.cc
extensions/tests/test_ui.cc
+13
-13
test_vtypes.cc
extensions/tests/test_vtypes.cc
+1
-1
tests_with_conf.cc
extensions/tests/tests_with_conf.cc
+3
-3
tests_with_sm.cc
extensions/tests/tests_with_sm.cc
+2
-2
tests_with_conf.cc
tests/tests_with_conf.cc
+2
-2
UniSet.py
wrappers/python/lib/lib/UniSet.py
+1
-2
No files found.
conf/libuniset2.spec
View file @
0d02aac3
...
...
@@ -25,7 +25,7 @@
%define oname uniset2
Name: libuniset2
Version: 2.17.
1
Version: 2.17.
2
Release: alt1
Summary: UniSet - library for building distributed industrial control systems
...
...
@@ -91,7 +91,7 @@ BuildRequires: doxygen graphviz ImageMagick-tools
%endif
%if_enabled tests
BuildRequires: catch
BuildRequires: catch
2-devel
%endif
#set_verify_elf_method textrel=strict,rpath=strict,unresolved=strict
...
...
@@ -594,6 +594,9 @@ rm -f %buildroot%_docdir/%oname/html/*.md5
# history of current unpublished changes
%changelog
* Sun Oct 31 2021 Pavel Vainerman <pv@altlinux.ru> 2.17.2-alt1
- used catch2 instead catch
* Thu Oct 28 2021 Pavel Vainerman <pv@altlinux.ru> 2.17.1-alt1
- DBServer-PGSQL: new libpqxx (c++17)
...
...
configure.ac
View file @
0d02aac3
...
...
@@ -3,10 +3,10 @@
# See doc: http://www.gnu.org/software/hello/manual/autoconf/Generic-Programs.html
# AC_PREREQ(2.59)
AC_INIT([uniset2], [2.17.
1
], pv@etersoft.ru)
AC_INIT([uniset2], [2.17.
2
], pv@etersoft.ru)
AM_INIT_AUTOMAKE([subdir-objects])
LIBVER=1
8
:2:17
LIBVER=1
9
:2:17
AC_SUBST(LIBVER)
# AC_CONFIG_MACRO_DIR([m4])
...
...
extensions/HttpResolver/tests/run_test_uresolver.cc
View file @
0d02aac3
...
...
@@ -18,14 +18,14 @@ int main( int argc, const char* argv[] )
if
(
argc
>
1
&&
(
strcmp
(
argv
[
1
],
"--help"
)
==
0
||
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
)
{
session
.
showHelp
(
"tests_httpresolver"
);
session
.
showHelp
();
return
0
;
}
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/HttpResolver/tests/test_uresolver.cc
View file @
0d02aac3
...
...
@@ -47,7 +47,7 @@ TEST_CASE("HttpResolver: resolve", "[httpresolver][ui]")
REQUIRE_NOTHROW
(
ui
->
resolve
(
TestProc
,
Node1
)
);
REQUIRE_NOTHROW
(
ui
->
resolve
(
"UNISET_PLC/UniObjects/TestProc"
)
);
REQUIRE_THROWS_AS
(
ui
->
resolve
(
DefaultObjectId
,
Node1
),
uniset
::
ResolveNameError
&
);
REQUIRE_THROWS_AS
(
ui
->
resolve
(
DefaultObjectId
,
Node1
),
uniset
::
ResolveNameError
);
REQUIRE
(
ui
->
isExist
(
TestProc
,
Node1
)
);
}
// -----------------------------------------------------------------------------
...
...
extensions/IOControl/tests/run_test_iocontrol.cc
View file @
0d02aac3
...
...
@@ -34,8 +34,8 @@ int main( int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
// dlog()->logFile("./smtest.log");
...
...
extensions/LogicProcessor/tests/tests.cc
View file @
0d02aac3
...
...
@@ -26,8 +26,8 @@ int main(int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
,
"lp-configure.xml"
);
...
...
extensions/ModbusMaster/tests/run_test_mbtcpmaster.cc
View file @
0d02aac3
...
...
@@ -28,14 +28,14 @@ int main( int argc, const char* argv[] )
cout
<<
"--confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
SharedMemory
::
help_print
(
argc
,
argv
);
cout
<<
endl
<<
endl
<<
"--------------- CATCH HELP --------------"
<<
endl
;
session
.
showHelp
(
"tests_mbtcpmaster"
);
session
.
showHelp
();
return
0
;
}
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
dlog
()
->
logFile
(
"./smtest.log"
);
...
...
extensions/ModbusMaster/tests/run_test_mbtcpmultimaster.cc
View file @
0d02aac3
...
...
@@ -26,14 +26,14 @@ int main(int argc, const char* argv[] )
cout
<<
"--confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
SharedMemory
::
help_print
(
argc
,
argv
);
cout
<<
endl
<<
endl
<<
"--------------- CATCH HELP --------------"
<<
endl
;
session
.
showHelp
(
"test_mbtcpmultimaster"
);
session
.
showHelp
();
return
0
;
}
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
dlog
()
->
logFile
(
"./smtest.log"
);
...
...
extensions/ModbusSlave/tests/tests_with_sm.cc
View file @
0d02aac3
...
...
@@ -24,14 +24,14 @@ int main(int argc, const char* argv[] )
cout
<<
"--confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
SharedMemory
::
help_print
(
argc
,
argv
);
cout
<<
endl
<<
endl
<<
"--------------- CATCH HELP --------------"
<<
endl
;
session
.
showHelp
(
"test_with_sm"
);
session
.
showHelp
();
return
0
;
}
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/SharedMemory/tests/tests.cc
View file @
0d02aac3
...
...
@@ -33,8 +33,8 @@ int main(int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/UNetUDP/tests/tests_individual_process.cc
View file @
0d02aac3
...
...
@@ -30,8 +30,8 @@ int main(int argc, char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
uniset_init
(
argc
,
argv
);
...
...
extensions/UNetUDP/tests/tests_multicast_with_sm.cc
View file @
0d02aac3
...
...
@@ -30,8 +30,8 @@ int main(int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/UNetUDP/tests/tests_with_sm.cc
View file @
0d02aac3
...
...
@@ -30,8 +30,8 @@ int main(int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/UWebSocketGate/tests/tests_with_sm.cc
View file @
0d02aac3
...
...
@@ -24,14 +24,14 @@ int main(int argc, const char* argv[] )
cout
<<
"--confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
SharedMemory
::
help_print
(
argc
,
argv
);
cout
<<
endl
<<
endl
<<
"--------------- CATCH HELP --------------"
<<
endl
;
session
.
showHelp
(
"test_with_sm"
);
session
.
showHelp
();
return
0
;
}
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/include/VTypes.h
View file @
0d02aac3
...
...
@@ -287,9 +287,13 @@ namespace uniset
return
raw
;
}
// ------------------------------------------
operator
int
()
bool
operator
==
(
const
int
&
a
)
const
{
return
raw
;
return
(
int
)
raw
==
a
;
}
bool
operator
==
(
const
long
&
a
)
const
{
return
(
long
)
raw
==
a
;
}
uint16_t
raw
;
...
...
@@ -330,9 +334,14 @@ namespace uniset
{
return
raw
;
}
operator
int
()
// ------------------------------------------
bool
operator
==
(
const
int
&
a
)
const
{
return
raw
;
return
(
int
)
raw
==
a
;
}
bool
operator
==
(
const
long
&
a
)
const
{
return
(
long
)
raw
==
a
;
}
int16_t
raw
;
...
...
extensions/tests/test_ui.cc
View file @
0d02aac3
...
...
@@ -47,14 +47,14 @@ TEST_CASE("UInterface", "[UInterface]")
SECTION
(
"GET/SET"
)
{
REQUIRE_THROWS_AS
(
ui
->
getValue
(
DefaultObjectId
),
uniset
::
ORepFailed
&
);
REQUIRE_THROWS_AS
(
ui
->
getValue
(
DefaultObjectId
),
uniset
::
ORepFailed
);
REQUIRE_NOTHROW
(
ui
->
setValue
(
sid
,
1
)
);
REQUIRE
(
ui
->
getValue
(
sid
)
==
1
);
REQUIRE_NOTHROW
(
ui
->
setValue
(
sid
,
100
)
);
REQUIRE
(
ui
->
getValue
(
sid
)
==
100
);
// хоть это и дискретный датчик.. функция-то универсальная..
REQUIRE_THROWS_AS
(
ui
->
getValue
(
sid
,
DefaultObjectId
),
uniset
::
Exception
&
);
REQUIRE_THROWS_AS
(
ui
->
getValue
(
sid
,
100
),
uniset
::
Exception
&
);
REQUIRE_THROWS_AS
(
ui
->
getValue
(
sid
,
DefaultObjectId
),
uniset
::
Exception
);
REQUIRE_THROWS_AS
(
ui
->
getValue
(
sid
,
100
),
uniset
::
Exception
);
REQUIRE_NOTHROW
(
ui
->
setValue
(
aid
,
10
)
);
REQUIRE
(
ui
->
getValue
(
aid
)
==
10
);
...
...
@@ -67,16 +67,16 @@ TEST_CASE("UInterface", "[UInterface]")
REQUIRE_NOTHROW
(
ui
->
fastSetValue
(
si
,
20
,
DefaultObjectId
)
);
REQUIRE
(
ui
->
getValue
(
aid
)
==
20
);
REQUIRE_THROWS_AS
(
ui
->
getValue
(
aid
,
-
2
),
uniset
::
Exception
&
);
REQUIRE_THROWS_AS
(
ui
->
getValue
(
aid
,
-
2
),
uniset
::
Exception
);
si
.
id
=
sid
;
REQUIRE_NOTHROW
(
ui
->
setValue
(
si
,
15
,
DefaultObjectId
)
);
REQUIRE
(
ui
->
getValue
(
sid
)
==
15
);
si
.
node
=
-
2
;
REQUIRE_THROWS_AS
(
ui
->
setValue
(
si
,
20
,
DefaultObjectId
),
uniset
::
Exception
&
);
REQUIRE_THROWS_AS
(
ui
->
setValue
(
si
,
20
,
DefaultObjectId
),
uniset
::
Exception
);
REQUIRE_THROWS_AS
(
ui
->
getTimeChange
(
sid
,
DefaultObjectId
),
uniset
::
ORepFailed
&
);
REQUIRE_THROWS_AS
(
ui
->
getTimeChange
(
sid
,
DefaultObjectId
),
uniset
::
ORepFailed
);
REQUIRE_NOTHROW
(
ui
->
getTimeChange
(
sid
,
conf
->
getLocalNode
())
);
si
.
id
=
aid
;
...
...
@@ -96,8 +96,8 @@ TEST_CASE("UInterface", "[UInterface]")
SECTION
(
"resolve"
)
{
REQUIRE_NOTHROW
(
ui
->
resolve
(
sid
)
);
REQUIRE_THROWS_AS
(
ui
->
resolve
(
sid
,
10
),
uniset
::
ResolveNameError
&
);
REQUIRE_THROWS_AS
(
ui
->
resolve
(
sid
,
DefaultObjectId
),
uniset
::
ResolveNameError
&
);
REQUIRE_THROWS_AS
(
ui
->
resolve
(
sid
,
10
),
uniset
::
ResolveNameError
);
REQUIRE_THROWS_AS
(
ui
->
resolve
(
sid
,
DefaultObjectId
),
uniset
::
ResolveNameError
);
REQUIRE_NOTHROW
(
ui
->
resolve
(
"UNISET_PLC/Controllers/SharedMemory"
)
);
}
...
...
@@ -164,17 +164,17 @@ TEST_CASE("UInterface", "[UInterface]")
SECTION
(
"ask"
)
{
REQUIRE_THROWS_AS
(
ui
->
askSensor
(
sid
,
UniversalIO
::
UIONotify
),
uniset
::
IOBadParam
&
);
REQUIRE_THROWS_AS
(
ui
->
askSensor
(
sid
,
UniversalIO
::
UIONotify
),
uniset
::
IOBadParam
);
REQUIRE_NOTHROW
(
ui
->
askSensor
(
sid
,
UniversalIO
::
UIONotify
,
testOID
)
);
REQUIRE_NOTHROW
(
ui
->
askSensor
(
aid
,
UniversalIO
::
UIONotify
,
testOID
)
);
REQUIRE_NOTHROW
(
ui
->
askSensor
(
aid
,
UniversalIO
::
UIODontNotify
,
testOID
)
);
REQUIRE_NOTHROW
(
ui
->
askSensor
(
sid
,
UniversalIO
::
UIODontNotify
,
testOID
)
);
REQUIRE_THROWS_AS
(
ui
->
askSensor
(
-
20
,
UniversalIO
::
UIONotify
),
uniset
::
Exception
&
);
REQUIRE_THROWS_AS
(
ui
->
askSensor
(
-
20
,
UniversalIO
::
UIONotify
),
uniset
::
Exception
);
REQUIRE_NOTHROW
(
ui
->
askRemoteSensor
(
sid
,
UniversalIO
::
UIONotify
,
conf
->
getLocalNode
(),
testOID
)
);
REQUIRE_NOTHROW
(
ui
->
askRemoteSensor
(
aid
,
UniversalIO
::
UIONotify
,
conf
->
getLocalNode
(),
testOID
)
);
REQUIRE_THROWS_AS
(
ui
->
askRemoteSensor
(
sid
,
UniversalIO
::
UIONotify
,
-
3
,
testOID
),
uniset
::
Exception
&
);
REQUIRE_THROWS_AS
(
ui
->
askRemoteSensor
(
sid
,
UniversalIO
::
UIONotify
,
-
3
,
testOID
),
uniset
::
Exception
);
uniset
::
IDList
lst
;
lst
.
add
(
aid
);
...
...
@@ -190,7 +190,7 @@ TEST_CASE("UInterface", "[UInterface]")
REQUIRE_NOTHROW
(
ui
->
askThreshold
(
aid
,
10
,
UniversalIO
::
UIONotify
,
90
,
100
,
false
,
testOID
)
);
REQUIRE_NOTHROW
(
ui
->
askThreshold
(
aid
,
11
,
UniversalIO
::
UIONotify
,
50
,
70
,
false
,
testOID
)
);
REQUIRE_NOTHROW
(
ui
->
askThreshold
(
aid
,
12
,
UniversalIO
::
UIONotify
,
20
,
40
,
false
,
testOID
)
);
REQUIRE_THROWS_AS
(
ui
->
askThreshold
(
aid
,
3
,
UniversalIO
::
UIONotify
,
50
,
20
,
false
,
testOID
),
IONotifyController_i
::
BadRange
&
);
REQUIRE_THROWS_AS
(
ui
->
askThreshold
(
aid
,
3
,
UniversalIO
::
UIONotify
,
50
,
20
,
false
,
testOID
),
IONotifyController_i
::
BadRange
);
IONotifyController_i
::
ThresholdsListSeq_var
slist
=
ui
->
getThresholdsList
(
aid
);
REQUIRE
(
slist
->
length
()
==
1
);
// количество датчиков с порогами = 1 (это aid)
...
...
@@ -213,7 +213,7 @@ TEST_CASE("UInterface", "[UInterface]")
REQUIRE
(
ti3
.
lowlimit
==
20
);
REQUIRE
(
ti3
.
hilimit
==
40
);
REQUIRE_THROWS_AS
(
ui
->
getThresholdInfo
(
sid
,
10
),
uniset
::
NameNotFound
&
);
REQUIRE_THROWS_AS
(
ui
->
getThresholdInfo
(
sid
,
10
),
uniset
::
NameNotFound
);
// проверяем thresholds который был сформирован из секции <thresholds>
ui
->
setValue
(
10
,
378
);
...
...
extensions/tests/test_vtypes.cc
View file @
0d02aac3
...
...
@@ -325,7 +325,7 @@ TEST_CASE("VTypes: Signed", "[vtypes][signed]")
{
ModbusRTU
::
ModbusData
d
=
65535
;
Signed
v
(
d
);
REQUIRE
(
(
int
)
v
==
(
int
)
d
);
REQUIRE
(
(
ModbusRTU
::
ModbusData
)
v
==
d
);
}
}
// -----------------------------------------------------------------------------
extensions/tests/tests_with_conf.cc
View file @
0d02aac3
...
...
@@ -12,10 +12,10 @@ int main( int argc, const char* argv[] )
uniset
::
uniset_init
(
argc
,
argv
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
,
Catch
::
Session
::
OnUnusedOptions
::
Ignore
);
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
return
session
.
run
();
}
...
...
extensions/tests/tests_with_sm.cc
View file @
0d02aac3
...
...
@@ -60,8 +60,8 @@ int main(int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
tests/tests_with_conf.cc
View file @
0d02aac3
...
...
@@ -15,8 +15,8 @@ int main( int argc, const char* argv[] )
int
returnCode
=
session
.
applyCommandLine
(
argc
,
argv
);
if
(
returnCode
!=
0
)
// Indicates a command line error
return
returnCode
;
//
if( returnCode != 0 ) // Indicates a command line error
//
return returnCode;
return
session
.
run
();
}
...
...
wrappers/python/lib/lib/UniSet.py
View file @
0d02aac3
...
...
@@ -217,7 +217,7 @@ class ShortIOInfo(_object):
ShortIOInfo_swigregister
=
_UniSet
.
ShortIOInfo_swigregister
ShortIOInfo_swigregister
(
ShortIOInfo
)
class
UException
(
BaseException
,
_object
):
class
UException
(
_object
):
__swig_setmethods__
=
{}
__setattr__
=
lambda
self
,
name
,
value
:
_swig_setattr
(
self
,
UException
,
name
,
value
)
__swig_getmethods__
=
{}
...
...
@@ -225,7 +225,6 @@ class UException(BaseException, _object):
__repr__
=
_swig_repr
def
__init__
(
self
,
*
args
):
BaseException
.
__init__
(
self
,
args
)
this
=
_UniSet
.
new_UException
(
*
args
)
try
:
self
.
this
.
append
(
this
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment