##// END OF EJS Templates
tests: remove doctest in narrowspec, it is broken...
Kyle Lippincott -
r45053:1922694d default
parent child Browse files
Show More
@@ -233,21 +233,6 b' def restrictpatterns(req_includes, req_e'
233 233 :param repo_includes: repo includes
234 234 :param repo_excludes: repo excludes
235 235 :return: include patterns, exclude patterns, and invalid include patterns.
236
237 >>> restrictpatterns({'f1','f2'}, {}, ['f1'], [])
238 (set(['f1']), {}, [])
239 >>> restrictpatterns({'f1'}, {}, ['f1','f2'], [])
240 (set(['f1']), {}, [])
241 >>> restrictpatterns({'f1/fc1', 'f3/fc3'}, {}, ['f1','f2'], [])
242 (set(['f1/fc1']), {}, [])
243 >>> restrictpatterns({'f1_fc1'}, {}, ['f1','f2'], [])
244 ([], set(['path:.']), [])
245 >>> restrictpatterns({'f1/../f2/fc2'}, {}, ['f1','f2'], [])
246 (set(['f2/fc2']), {}, [])
247 >>> restrictpatterns({'f1/../f3/fc3'}, {}, ['f1','f2'], [])
248 ([], set(['path:.']), [])
249 >>> restrictpatterns({'f1/$non_exitent_var'}, {}, ['f1','f2'], [])
250 (set(['f1/$non_exitent_var']), {}, [])
251 236 """
252 237 res_excludes = set(req_excludes)
253 238 res_excludes.update(repo_excludes)
General Comments 0
You need to be logged in to leave comments. Login now