test crashes when point of entry inspected

Bug #324522 reported by mkyle on 2009-02-02
4
Affects Status Importance Assigned to Milestone
Pythoscope
Medium
Michal Kwiatkowski

Bug Description

Hi
I have just been introduced to pythoscope, and have played around with the tutorial.
I have used pythoscope on my code, and treid making a point of entry following the same setup as the point of entry example in the pythoscope tutorial. However, this is the error I get from running pythoscope on my code after adding the point of entry.

pythoscope syncTest.py
ERROR: Oops, it seems internal Pythoscope error occured. Please file a bug report at https://bugs.launchpad.net/pythoscope

Traceback (most recent call last):
  File "/vol/apps/python-2.5.1_64/bin/pythoscope", line 8, in <module>
    load_entry_point('pythoscope==0.4', 'console_scripts', 'pythoscope')()
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/__init__.py", line 182, in main
    generate_tests(args, force, template)
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/__init__.py", line 110, in generate_tests
    inspect_project(project)
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/inspector/__init__.py", line 9, in inspect_project
    remove_deleted_points_of_entry(project)
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/inspector/__init__.py", line 43, in remove_deleted_points_of_entry
    project.remove_point_of_entry(name)
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/store.py", line 121, in remove_point_of_entry
    poe.clear_previous_run()
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/store.py", line 1030, in clear_previous_run
    self.execution.destroy()
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/store.py", line 885, in destroy
    captured_objects_container_of(obj).remove(obj)
  File "/vol/apps/python-2.5.1_64/lib/python2.5/site-packages/pythoscope-0.4-py2.5.egg/pythoscope/store.py", line 819, in captured_objects_container_of
    raise TypeError("Don't know how to get a container of object %r." % obj)
TypeError: Don't know how to get a container of object UnknownObject('__builtin__.instance').

It would be great if someone could tell me what this error means as I would like to use pythoscope to do unittesting on my code.
Mikola Kyle

Related branches

Michal Kwiatkowski (ruby) wrote :

This is a bug in Pythoscope. Thanks for the report, fix should be available soon.

Changed in pythoscope:
assignee: nobody → ruby
importance: Undecided → Medium
milestone: none → 0.4.1-setup-and-teardown-fixes
status: New → Confirmed
Michal Kwiatkowski (ruby) wrote :

Fixed in trunk r254.

Changed in pythoscope:
status: Confirmed → Fix Committed
Michal Kwiatkowski (ruby) wrote :

Fix released in 0.4.1.

Changed in pythoscope:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers