Skip to content
Permalink
Browse files

use is when comparign with None

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 10, 2013
1 parent f3b91c5 commit 6d6a9725e8a4a16993864955096a772e312e3815
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/objects/test_regexpobject.py
@@ -197,7 +197,7 @@ def test_optional_group(self, space):
w_res = space.execute("return /(foo)?(bar)?/.match('foobar')[2]")
assert self.unwrap(space, w_res) == "bar"
w_res = space.execute("return /(foo)?(bar)?/.match('foo')[2]")
assert self.unwrap(space, w_res) == None
assert self.unwrap(space, w_res) is None

def test_quantify_set(self, space):
w_res = space.execute("return /([0-9]){3,5}?/ =~ 'ab12345'")

0 comments on commit 6d6a972

Please sign in to comment.
You can’t perform that action at this time.