Title: Add support for running pytest from dotnet core 2.0 (dotnet
Open Graph Title: Add support for running pytest from dotnet core 2.0 (dotnet
X Title: Add support for running pytest from dotnet core 2.0 (dotnet
Description: Environment Pythonnet version: Any Python version: Any Operating System: Any Details Describe what you were trying to get done. pytest suite now works unly under Windows/Mono but not under .Net Core 2.0 What commands did you run to trigg...
Open Graph Description: Environment Pythonnet version: Any Python version: Any Operating System: Any Details Describe what you were trying to get done. pytest suite now works unly under Windows/Mono but not under .Net Cor...
X Description: Environment Pythonnet version: Any Python version: Any Operating System: Any Details Describe what you were trying to get done. pytest suite now works unly under Windows/Mono but not under .Net Cor...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/590
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for running pytest from dotnet core 2.0 (dotnet \u003cpath\u003e/netcoreapp2.0/nPython.dll)","articleBody":"### Environment\r\n\r\n- Pythonnet version: Any\r\n- Python version: Any\r\n- Operating System: Any\r\n\r\n### Details\r\n\r\n- Describe what you were trying to get done.\r\n\r\n pytest suite now works unly under Windows/Mono but not under .Net Core 2.0\r\n\r\n- What commands did you run to trigger this issue? If you can provide a\r\n [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve)\r\n this will help us understand the issue.\r\n\r\n```python\r\nimport sys\r\nsys.path.append('/users/isys/icronyn/pyenvs/pythonnet/lib/python2.7/site-packages/pytest-2.9.1-py2.7.egg')\r\nsys.path.append('/users/isys/icronyn/pyenvs/pythonnet/lib/python2.7/site-packages/py-1.4.31-py2.7.egg')\r\nimport pytest\r\npytest.main()\r\n\r\n```\r\n```\r\n============================================================================== test session starts ==============================================================================\r\nplatform linux2 -- Python 2.7.5, pytest-2.9.1, py-1.4.31, pluggy-0.3.1\r\nrootdir: /users/isys/icronyn/git/pythonnet, inifile: \r\ncollected 376 items \r\n\r\nsrc/tests/test_array.py .....................................F..\r\nsrc/tests/test_callback.py ..\r\nsrc/tests/test_class.py .......F..F..FF...\r\nsrc/tests/test_clrmethod.py FFFFF\r\nsrc/tests/test_compat.py ......FFFF....F.\r\nsrc/tests/test_constructors.py ....\r\nsrc/tests/test_conversion.py ....................\r\nsrc/tests/test_delegate.py ...\r\nUnhandled Exception: System.MissingMethodException: Constructor on type 'System.Reflection.Emit.TypeBuilder' not found.\r\n at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark\u0026 stackMark)\r\n at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)\r\n at System.Activator.CreateInstance(Type type, Object[] args)\r\n at Python.Runtime.DelegateManager.GetDelegate(Type dtype, IntPtr callable) in /users/isys/icronyn/git/pythonnet/src/runtime/delegatemanager.cs:line 159\r\n at Python.Runtime.DelegateObject.tp_new(IntPtr tp, IntPtr args, IntPtr kw) in /users/isys/icronyn/git/pythonnet/src/runtime/delegateobject.cs:line 61\r\n at Python.Runtime.MetaType.tp_call(IntPtr tp, IntPtr args, IntPtr kw) in /users/isys/icronyn/git/pythonnet/src/runtime/metatype.cs:line 148\r\n at Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)\r\n at Python.Runtime.PythonConsole.Main(String[] args) in /users/isys/icronyn/git/pythonnet/src/console/pythonconsole.cs:line 37\r\nAborted\r\n```","author":{"url":"https://github.com/dmitriyse","@type":"Person","name":"dmitriyse"},"datePublished":"2017-12-12T22:34:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/590/pythonnet/issues/590"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a47eb1a-52ce-de4b-cc11-3c8032b7d7f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1D4:35E6BA:27F52BA:3811951:6970FFE4 |
| html-safe-nonce | 4c3dd7375080b34bb0e87ba522fa81f2edd7153f4baa8b338fe30071ae34d20d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUQ0OjM1RTZCQToyN0Y1MkJBOjM4MTE5NTE6Njk3MEZGRTQiLCJ2aXNpdG9yX2lkIjoiNjkxMTUyOTM3MjQxNDQ0MzQ5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f293e4aaf61f29404faabbf93bb77341ddb16627aa81eb5254b3ec5dae878ffd |
| hovercard-subject-tag | issue:281561314 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/590/issue_layout |
| twitter:image | https://opengraph.githubassets.com/197c2adc97f9f51965058b54a5528bb49cbeb6cae74bf0887b84e43d5ac2a74f/pythonnet/pythonnet/issues/590 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/197c2adc97f9f51965058b54a5528bb49cbeb6cae74bf0887b84e43d5ac2a74f/pythonnet/pythonnet/issues/590 |
| og:image:alt | Environment Pythonnet version: Any Python version: Any Operating System: Any Details Describe what you were trying to get done. pytest suite now works unly under Windows/Mono but not under .Net Cor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmitriyse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d17fd2bbd784dc91f3a78a2f1d2c41d9f4f8ce86136d09833e3cf21b2bde1b7 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e053d923fb27a9d948f8cefae8ba3bf43f7b938f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width