Permalink
Browse files

Added test demonstrating issue #4

  • Loading branch information...
1 parent 14feccc commit acc5f3b86f5ace9ea13960b356bc89cf928893ab @jaraco committed Nov 14, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 test_path.py
View
@@ -71,6 +71,17 @@ def testRelpath(self):
d = path('D:\\')
self.assertEqual(d.relpathto(boz), boz)
+ def testConstructionFromNone(self):
+ """
+ path class raise a TypeError when constructed from None
+ """
+ try:
+ path(None)
+ except TypeError:
+ pass
+ else:
+ raise Exception("DID NOT RAISE")
+
def testStringCompatibility(self):
""" Test compatibility with ordinary strings. """
x = path('xyzzy')

0 comments on commit acc5f3b

Please sign in to comment.