You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Amit Cahanovich (JIRA)" <ji...@apache.org> on 2011/01/27 12:35:45 UTC
[jira] Created: (CASSANDRA-2063) bug with test
bug with test
-------------
Key: CASSANDRA-2063
URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
Project: Cassandra
Issue Type: Bug
Affects Versions: 0.7.0
Environment: RHL. Python 2.4.3
Reporter: Amit Cahanovich
Priority: Minor
when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
mod = load_module(part_fqname, fh, filename, desc)
File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
from . import AvroTester
^
SyntaxError: invalid syntax
All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-2063) bug with test
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987816#action_12987816 ]
Hudson commented on CASSANDRA-2063:
-----------------------------------
Integrated in Cassandra-0.7 #222 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/222/])
CASSANDRA-2063 Python2.4-friendly imports
Patch by eevans for CASSANDRA-2063
> bug with test
> -------------
>
> Key: CASSANDRA-2063
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: RHL. Python 2.4.3
> Reporter: Amit Cahanovich
> Assignee: Eric Evans
> Priority: Minor
> Fix For: 0.7.2
>
> Attachments: v1-0001-CASSANDRA-2063-Python2.4-friendly-imports.txt
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
> mod = load_module(part_fqname, fh, filename, desc)
> File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
> from . import AvroTester
> ^
> SyntaxError: invalid syntax
> All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-2063) bug with test
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987789#action_12987789 ]
Jonathan Ellis commented on CASSANDRA-2063:
-------------------------------------------
i'm kind of surprised that import is the only thing keeping 2.4 from running, but +1
> bug with test
> -------------
>
> Key: CASSANDRA-2063
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: RHL. Python 2.4.3
> Reporter: Amit Cahanovich
> Assignee: Eric Evans
> Priority: Minor
> Fix For: 0.7.2
>
> Attachments: v1-0001-CASSANDRA-2063-Python2.4-friendly-imports.txt
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
> mod = load_module(part_fqname, fh, filename, desc)
> File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
> from . import AvroTester
> ^
> SyntaxError: invalid syntax
> All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-2063) bug with test
Posted by "Amit Cahanovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987994#action_12987994 ]
Amit Cahanovich commented on CASSANDRA-2063:
--------------------------------------------
why is it surprising you?
when you do the test, you will face one more issue. i dont remember where
exactly, but in one of the parameter declaration there is an extra 'b'
outside the value (instad of "a='value'" its written "a= b'value' ".
anyway, i suggest also to add script that will be executed in the beginning
of each and every test that will do the following:
1) delete the DB.
2) kill the existed instance of Cassandra in case there is a file of
existing Casandra in root diretory.
3) delete the existing file that prevent the test from being ran.
I can tell u that for me it was really confusing, especially that not much
documentation is written on it.
Cheers,
Amit
> bug with test
> -------------
>
> Key: CASSANDRA-2063
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: RHL. Python 2.4.3
> Reporter: Amit Cahanovich
> Assignee: Eric Evans
> Priority: Minor
> Fix For: 0.7.2
>
> Attachments: v1-0001-CASSANDRA-2063-Python2.4-friendly-imports.txt
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
> mod = load_module(part_fqname, fh, filename, desc)
> File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
> from . import AvroTester
> ^
> SyntaxError: invalid syntax
> All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-2063) bug with test
Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Evans updated CASSANDRA-2063:
----------------------------------
Attachment: v1-0001-CASSANDRA-2063-Python2.4-friendly-imports.txt
> bug with test
> -------------
>
> Key: CASSANDRA-2063
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: RHL. Python 2.4.3
> Reporter: Amit Cahanovich
> Assignee: Eric Evans
> Priority: Minor
> Fix For: 0.7.2
>
> Attachments: v1-0001-CASSANDRA-2063-Python2.4-friendly-imports.txt
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
> mod = load_module(part_fqname, fh, filename, desc)
> File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
> from . import AvroTester
> ^
> SyntaxError: invalid syntax
> All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-2063) bug with test
Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987806#action_12987806 ]
Eric Evans commented on CASSANDRA-2063:
---------------------------------------
Yeah, same here. Maybe OP didn't make it past this (I don't have 2.4 handy to test with). Anyway, committed.
> bug with test
> -------------
>
> Key: CASSANDRA-2063
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: RHL. Python 2.4.3
> Reporter: Amit Cahanovich
> Assignee: Eric Evans
> Priority: Minor
> Fix For: 0.7.2
>
> Attachments: v1-0001-CASSANDRA-2063-Python2.4-friendly-imports.txt
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
> mod = load_module(part_fqname, fh, filename, desc)
> File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
> from . import AvroTester
> ^
> SyntaxError: invalid syntax
> All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-2063) bug with test
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2063:
--------------------------------------
Fix Version/s: 0.7.2
Assignee: Eric Evans
> bug with test
> -------------
>
> Key: CASSANDRA-2063
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2063
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: RHL. Python 2.4.3
> Reporter: Amit Cahanovich
> Assignee: Eric Evans
> Priority: Minor
> Fix For: 0.7.2
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> when executing nosetests (e.g: nosetests test/system/test_avro_system.py), you get the following error:
> mod = load_module(part_fqname, fh, filename, desc)
> File "/tmp/apache-cassandra-0.7.0-src/test/system/test_avro_system.py", line 19
> from . import AvroTester
> ^
> SyntaxError: invalid syntax
> All *.py scripts should be changed to be "from __init__ import (AvroTester)" instead of "from . import AvroTester"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.