Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
fd4737aa
Commit
fd4737aa
authored
Sep 11, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This sqlalchemy test works now
parent
42b34706
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/runtime/types.cpp
src/runtime/types.cpp
+1
-0
test/integration/sqlalchemy_smalltest.py
test/integration/sqlalchemy_smalltest.py
+2
-1
No files found.
src/runtime/types.cpp
View file @
fd4737aa
...
...
@@ -3552,6 +3552,7 @@ void setupRuntime() {
// XXX silly that we have to set this again
new
(
&
object_cls
->
attrs
)
HCAttrs
(
HiddenClass
::
makeSingleton
());
new
(
&
type_cls
->
attrs
)
HCAttrs
(
HiddenClass
::
makeSingleton
());
object_cls
->
instances_are_nonzero
=
true
;
object_cls
->
tp_getattro
=
PyObject_GenericGetAttr
;
object_cls
->
tp_setattro
=
PyObject_GenericSetAttr
;
object_cls
->
tp_init
=
object_init
;
...
...
test/integration/sqlalchemy_smalltest.py
View file @
fd4737aa
...
...
@@ -73,6 +73,7 @@ MODULES_TO_TEST = [
'test.base.test_events'
,
'test.base.test_except'
,
'test.base.test_inspect'
,
'test.base.test_utils'
,
'test.dialect.test_mxodbc'
,
'test.dialect.test_pyodbc'
,
'test.dialect.test_sybase'
,
...
...
@@ -103,7 +104,7 @@ for fn in test_files:
m
=
__import__
(
mname
,
fromlist
=
[
"__all__"
])
for
clsname
in
dir
(
m
):
cls
=
getattr
(
m
,
clsname
)
if
not
clsname
.
endswith
(
"Test"
)
or
not
isinstance
(
cls
,
type
):
if
clsname
.
startswith
(
'_'
)
or
not
clsname
.
endswith
(
"Test"
)
or
not
isinstance
(
cls
,
type
):
continue
print
"Running"
,
cls
...
...
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