-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1. Run unit tests
What is the expected output? What do you see instead?
I excpect them to finish with all OK.
I get failure of two tests with NullRect not defined.
Ran 11 tests in 259.657s
FAILED (errors=2)
from pyrtree import Rect, RTree
+ from pyrtree.rect import NullRect
#from pyrtree.rect import *
With "+" I mark added line, which fixes the problem.
Ran 11 tests in 257.825s
OK
What version of the product are you using? On what operating system?
Python 2.6.6 on Windows Vista.
Please provide any additional information below.
======================================================================
ERROR: testCons (__main__.RectangleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\valit\Desktop\Rtree\pyrtree\tests\test_rtree.py", line 77, in testCons
self.assertTrue(r is not NullRect)
NameError: global name 'NullRect' is not defined
======================================================================
ERROR: testIntersection (__main__.RectangleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\valit\Desktop\Rtree\pyrtree\tests\test_rtree.py", line 95, in testIntersection
self.assertTrue(res2 is NullRect)
NameError: global name 'NullRect' is not defined
----------------------------------------------------------------------
Ran 11 tests in 259.657s
FAILED (errors=2)
Traceback (most recent call last):
File "C:\Users\valit\Desktop\Rtree\pyrtree\tests\test_rtree.py", line 266, in <module>
ut.main()
File "C:\Python26\lib\unittest.py", line 817, in __init__
self.runTests()
File "C:\Python26\lib\unittest.py", line 865, in runTests
sys.exit(not result.wasSuccessful())
SystemExit: True
Original issue reported on code.google.com by qtv...@gmail.com on 8 May 2011 at 8:50
Reactions are currently unavailable