INFO: Inspecting module iparser.py.
INFO: Inspecting point of entry base_parsing.py.
INFO: Generating tests for module iparser.py.
INFO: Adding generated test_parse_string_returns_program_instance_for_phases_ph1__0_45_90_ph2__180_360_program_d1_loop_16_times_d7_p3ph1_endloop_loop_2_times_phase_shift_d7_p3ph1_endloop_p1ph2_acquire to TestParseString in tests/test_iparser.py.
INFO: Test case TestParseFromFile.test_parse_from_file already exists in tests/test_iparser.py, skipping.
INFO: Test case TestStatement.test___indent__ already exists in tests/test_iparser.py, skipping.
INFO: Test case TestStatement.test___repr__ already exists in tests/test_iparser.py, skipping.
INFO: Test case TestStatement.test___str__ already exists in tests/test_iparser.py, skipping.
INFO: Test case TestPhaseDecl.test___pp__ already exists in tests/test_iparser.py, skipping.
INFO: Adding generated test_creation_with_number_equal_1_and_ph_list_equal_list to TestPhaseDecl in tests/test_iparser.py.
INFO: Adding generated test_creation_with_number_equal_2_and_ph_list_equal_list to TestPhaseDecl in tests/test_iparser.py.
ERROR: Oops, it seems that an internal Pythoscope error occurred. Please file a bug report at https://bugs.launchpad.net/pythoscope
Traceback (most recent call last):
File "/home/tomyo/.virtualenvs/tesis/bin/pythoscope", line 9, in <module>
load_entry_point('pythoscope==0.4.3', 'console_scripts', 'pythoscope')()
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/__init__.py", line 190, in main
generate_tests(args, force, template)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/__init__.py", line 119, in generate_tests
add_tests_to_project(project, modules, template, force)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 985, in add_tests_to_project
generator.add_tests_to_project(project, modnames, force)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 705, in add_tests_to_project
self._add_tests_for_module(module, project, force)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 720, in _add_tests_for_module
for test_case in self._generate_test_cases(module):
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 725, in _generate_test_cases
test_case = self._generate_test_case(object, module)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 736, in _generate_test_case
return self._generate_test_class(class_name, method_descriptions, module, body)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/generator/__init__.py", line 754, in _generate_test_class
code = parse_fragment(body)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/astbuilder.py", line 99, in parse_fragment
parsed_code = parse(code)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/pythoscope/astbuilder.py", line 82, in parse
result = drv.parse_string(code, True)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/lib2to3/pgen2/driver.py", line 104, in parse_string
return self.parse_tokens(tokens, debug)
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/lib2to3/pgen2/driver.py", line 69, in parse_tokens
if p.addtoken(type, value, (prefix, start)):
File "/home/tomyo/.virtualenvs/tesis/local/lib/python2.7/site-packages/pythoscope-0.4.3-py2.7.egg/lib2to3/pgen2/parse.py", line 177, in addtoken
raise ParseError("bad input", type, value, context)
lib2to3.pgen2.parse.ParseError: bad input: type=22, value='=', context=(' ', (8, 12))
Thank you Tomas for reporting this.
Which version of pythoscope are you using?
I could not reproduce this error on pythoscope from github: https:/ /github. com/mkwiatkowsk i/pythoscope