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
5ae9cb6b
Commit
5ae9cb6b
authored
Aug 28, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These sqlalchemy tests work now
parent
6131d3c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
test/integration/sqlalchemy_smalltest.py
test/integration/sqlalchemy_smalltest.py
+9
-6
No files found.
test/integration/sqlalchemy_smalltest.py
View file @
5ae9cb6b
...
...
@@ -44,7 +44,12 @@ import sqlalchemy.testing
class
Requirements
(
object
):
def
__getattr__
(
self
,
n
):
def
inner
(
f
):
return
f
if
n
==
"predictable_gc"
:
def
f2
(
*
args
,
**
kw
):
return
return
f2
else
:
return
f
inner
.
not_
=
lambda
:
inner
return
inner
sqlalchemy
.
testing
.
config
.
requirements
=
sqlalchemy
.
testing
.
requires
=
Requirements
()
...
...
@@ -56,11 +61,6 @@ test_files = glob.glob(TEST_DIR + "/test*.py") + glob.glob(TEST_DIR + "/*/test*.
# infrastructure to run):
MODULES_TO_TEST
=
[
'test.engine.test_parseconnect'
,
'test.ext.test_compiler'
,
'test.dialect.test_pyodbc'
,
'test.dialect.test_sybase'
,
'test.dialect.test_mxodbc'
,
'test.sql.test_inspect'
,
'test.sql.test_operators'
,
'test.sql.test_ddlemit'
,
'test.sql.test_cte'
,
'test.base.test_dependency'
,
'test.base.test_except'
,
'test.base.test_inspect'
,
'test.base.test_events'
,
'test.orm.test_inspect'
,
'test.orm.test_descriptor'
]
# These are currently broken on Pyston:
MODULES_TO_TEST
.
remove
(
"test.sql.test_operators"
)
MODULES_TO_TEST
.
remove
(
"test.base.test_events"
)
MODULES_TO_TEST
.
remove
(
"test.orm.test_descriptor"
)
passed
=
[]
failed
=
[]
...
...
@@ -85,6 +85,9 @@ for fn in test_files:
for
t
in
dir
(
n
):
if
not
t
.
startswith
(
"test_"
):
continue
if
nname
==
"SubclassGrowthTest"
and
t
==
"test_subclass"
:
# This test should be marked as requiring predictable_pc
continue
print
"Running"
,
t
n
.
setup
()
getattr
(
n
,
t
)()
...
...
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