Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use is when comparign with None
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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'") |
|
|