Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lettuce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
lettuce
Commits
509323c0
Commit
509323c0
authored
Sep 07, 2012
by
Gabriel Falcao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python 2.5 does not support class decorators
parent
47de94f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tests/unit/test_terrain.py
+5
-0
No files found.
tests/unit/test_terrain.py
View file @
509323c0
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
sys
from
mox
import
Mox
from
mox
import
Mox
from
nose.tools
import
assert_equals
from
nose.tools
import
assert_equals
...
@@ -229,6 +230,10 @@ def test_world_should_be_able_to_absorb_classs():
...
@@ -229,6 +230,10 @@ def test_world_should_be_able_to_absorb_classs():
u"world should be able to absorb class"
u"world should be able to absorb class"
assert
not
hasattr
(
world
,
'MyClass'
)
assert
not
hasattr
(
world
,
'MyClass'
)
if
sys
.
version_info
<
(
2
,
5
):
# python 2.5 doesn't support class decorators
return
@world.absorb
@world.absorb
class
MyClass
:
class
MyClass
:
pass
pass
...
...
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