| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Copyright 2018 The go-python Authors. All rights reserved. | ||
| # Use of this source code is governed by a BSD-style | ||
| # license that can be found in the LICENSE file. | ||
|
|
||
| """ | ||
| Simple test harness | ||
| """ | ||
|
|
||
| def assertRaises(expecting, fn, *args, **kwargs): | ||
| """Check the exception was raised - don't check the text""" | ||
| try: | ||
| fn(*args, **kwargs) | ||
| except expecting as e: | ||
| pass | ||
| else: | ||
| assert False, "%s not raised" % (expecting,) | ||
|
|
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.