8000 Rebase with master by AlexCatarino · Pull Request #2 · QuantConnect/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Rebase with master #2

New issue

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

Merged
merged 332 commits into from
Jun 1, 2017
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
3058bf7
Cleanup testing format
vmuriart Jan 31, 2017
bd73d5a
XML Docs on test fixtures
vmuriart Jan 31, 2017
f7f2fc0
Update CHANGELOG
vmuriart Jan 31, 2017
eca5ac9
Implement Py.SetArgv.
filmor Jan 24, 2017
331524f
Add a `Py.Throw` function.
filmor Jan 26, 2017
a0849a9
Add overload for Initialize to pass specific args.
filmor Jan 30, 2017
4f67c5d
Allow the engine to be initialized as a Disposable.
filmor Jan 31, 2017
3785c40
Use Py.Throw in a few more places.
filmor Jan 31, 2017
7cab332
Merge pull request #347 from filmor/add-pysetargv
vmuriart Feb 1, 2017
78fb457
Add PY3.7 to travis with allow_failure
vmuriart Feb 1, 2017
cb6ec6d
Format & Whitespace
vmuriart Feb 1, 2017
8a50e13
Update CHANGELOG
vmuriart Feb 1, 2017
a12b2b2
Change applicable comments to xml-docs
vmuriart Jan 31, 2017
82f965b
Update API website on docs & fix section headers
vmuriart Feb 2, 2017
26ce7d8
Alias root.pyHandle to py_clr_module
vmuriart Feb 1, 2017
0e74f86
Syntax cleanup
vmuriart Feb 1, 2017
432467f
Merge pull request #350 from vmuriart/import-hook
vmuriart Feb 2, 2017
7cf4ba9
Simple classes cleanup (#348)
vmuriart Feb 2, 2017
448117e
Standarize properties used across projects
vmuriart Jan 31, 2017
9e070f9
Add pyproj from @denfromufa
vmuriart Jan 31, 2017
01a3c8d
Consolidate output paths
vmuriart Jan 31, 2017
c5f63bd
Fix clrmodule config mismapping
vmuriart Jan 31, 2017
73b8a9d
Add PY3 project/sln configs
vmuriart Jan 31, 2017
3f914ca
Update test PyImport path
vmuriart Feb 2, 2017
9d317bf
Merge pull request #346 from vmuriart/project
vmuriart Feb 2, 2017
b823400
Update runtime.csproj
vmuriart Feb 2, 2017
6ce9b53
Documentation clean-up
vmuriart Feb 2, 2017
ebbad47
Downgrade to nunit2
vmuriart Feb 2, 2017
8627843
Syntax cleanup
vmuriart Feb 2, 2017
073d7e8
Update CHANGELOG
vmuriart Feb 3, 2017
eb9465a
Clarify pynetinit.c, runtime build directives
vmuriart Feb 4, 2017
3dde784
Whitespace converter.cs
vmuriart Feb 4, 2017
de3d2ef
Propercase AssemblyInfo
vmuriart Feb 4, 2017
edada03
Refactor nativemethods
vmuriart Feb 4, 2017
d98e243
Rename `is32bit` to `Is32Bit` for naming consistency
vmuriart Feb 3, 2017
ea77ab0
Replace UCS2/UCS4 build directive with Runtime.UCS
vmuriart Feb 3, 2017
587f318
Add IsPython2 and IsPython3
vmuriart Feb 4, 2017
c197a64
Merge pull request #357 from vmuriart/Remove-Build_Directives
vmuriart Feb 4, 2017
b9815e4
Cleanup runtime config
vmuriart Feb 4, 2017
5844bee
Remove extra properties/Organize properties
vmuriart Feb 4, 2017
15cd373
Refactor property conditions
vmuriart Feb 4, 2017
24c61e6
Order Runtime.csproj configuration
vmuriart Feb 4, 2017
1991292
Merge pull request #359 from vmuriart/develop
vmuriart Feb 5, 2017
01fe979
Add pylong lost unit test
vmuriart Feb 5, 2017
2e5fab6
Replace #if DEBUG with conditional attribute
vmuriart Feb 6, 2017
56aee35
Fix and disable StrongNameSigning
vmuriart Feb 6, 2017
4fe44c4
Fix debug statement & rename debugprint
vmuriart Feb 6, 2017
a1b9136
Document nPython/Console usage
vmuriart Feb 6, 2017
4f71a94
Quiet Test Fixture build warnings about unused events.
vmuriart Feb 6, 2017
50e7915
Mono dependency removed from Linux build.
dmitriyse Jan 7, 2017
198f654
Remove mono dependency from PY2 as well.
vmuriart Feb 5, 2017
d2ba88a
Replace bufLength with size
vmuriart Feb 6, 2017
359e541
Merge pull request #360 from vmuriart/remove_mono_unix_dep
vmuriart Feb 6, 2017
77c7eb6
Remove arch .il files
vmuriart Feb 6, 2017
f9d913e
Update CHANGELOG
vmuriart Feb 6, 2017
b4710fc
Remove Mono.Unix reference from project
vmuriart Feb 6, 2017
049a61f
Clean-up deprWarning
vmuriart Feb 7, 2017
d1241f8
Clean-up attribute names and paranthesis
vmuriart Feb 7, 2017
61536f3
Use explicit accessors
vmuriart Feb 7, 2017
d8cf55a
Clean-up code-style
vmuriart Feb 7, 2017
42a6191
Remove obsoleted & Unenforced PermissionSet
vmuriart Feb 7, 2017
ca8d1cb
Add expire to license shield
vmuriart Feb 8, 2017
d82ca28
Remove usage of #region
vmuriart Feb 8, 2017
75dd544
Turn on NUNIT exit code
vmuriart Feb 7, 2017
c69297e
Fix GC on PyObject during Finalizing
vmuriart Feb 8, 2017
c954442
Update CHANGELOG
vmuriart Feb 8, 2017
8afd512
Merge pull request #365 from vmuriart/pyobject_finalize
vmuriart Feb 8, 2017
79eeb61
Add sys.args tests (#301)
Feb 8, 2017
3995130
Use NUnit from Nuget to ensure right version.
vmuriart Feb 8, 2017
4919bff
Simplify Embedded tests & Add new tests (#369)
vmuriart Feb 9, 2017
9cfb4f1
Add e-mail to remove setup.py warnings
vmuriart Feb 9, 2017
58bc902
Update NUnit syntax
vmuriart Feb 9, 2017
310d50d
Use string interpolation
vmuriart Feb 9, 2017
a2e8d46
Replace PyString_FromStringAndSize usage to PyString_FromString
vmuriart Feb 9, 2017
54841da
Fix xml-docs build warnings
vmuriart Feb 13, 2017
a5d325f
Refactor AppVeyor/Travis embedded test_runner
vmuriart Feb 13, 2017
ba7794b
Add pytest to CI
vmuriart Jan 13, 2017
1ea29c7
Convert unittest to pytest
vmuriart Jan 15, 2017
104ef71
Add setup.cfg
vmuriart Jan 23, 2017
76aa731
Simpler tox
vmuriart Jan 29, 2017
13e2a87
Merge pull request #368 from vmuriart/pytest
vmuriart Feb 14, 2017
adc927f
Upgrade NUnit to 3.6
vmuriart Feb 8, 2017
5f86154
Fix coverage w NUnit3; add OpenCover filter
vmuriart Feb 13, 2017
a343b34
Remove check-manifest
vmuriart Feb 14, 2017
ce40fb1
Add overload tests from #131
vmuriart Feb 14, 2017
8add8d1
Refactor converter.cs & methodbind*.cs (#375)
vmuriart Feb 14, 2017
d7942c8
Merge pull request #371 from vmuriart/nunit3_6
vmuriart Feb 14, 2017
a019017
Cleanup/Comment Python.Runtime.dll.config & travis
vmuriart Feb 14, 2017
5ad3408
Add LD_LIBRARY_PATH to travis env
vmuriart Feb 14, 2017
31f0b30
Find dll for PY2 travis embedded tests
vmuriart Feb 14, 2017
fcd1cd2
Generalize LD_LIBRARY_PATH
vmuriart Feb 14, 2017
49c85b4
Merge branch 'travis-find_dll' into pythonnet_master
vmuriart Feb 14, 2017
6afc9e6
Add GetPrecedence reference
vmuriart Feb 14, 2017
8f30a39
Use builtin miniconda
vmuriart Feb 15, 2017
1bd8636
Update version (#379)
Feb 15, 2017
08c2d64
StackOverflow/Slack shields (#384)
Feb 16, 2017
0f00e3a
Slack integration for Travis and Appveyor (#386)
filmor Feb 16, 2017
4ecde5b
Simplify LD_LIBRARY_PATH on Travis
vmuriart Feb 16, 2017
c64e34e
Rename NUnit vars to generic names
vmuriart Feb 16, 2017
1d7e784
Remove python test STDERR redirect
vmuriart Feb 16, 2017
433dc33
Clean-up AppVeyor build recipe
vmuriart Feb 16, 2017
d319f4e
Add requirements.txt and pytest options
vmuriart Feb 16, 2017
5ead8ef
Quiet sdist output & update comments on AppVeyor
vmuriart Feb 16, 2017
da940f5
Add pytest header info & remove unused fixtures
vmuriart Feb 16, 2017
99e04c5
Move Conda env to PowerShell recipe script
vmuriart Feb 16, 2017
d77f933
Use Codecov report flags
vmuriart Feb 16, 2017
df59d0f
Clean-up CI configs
vmuriart Feb 17, 2017
b23acab
Merge branch 'ci'
vmuriart Feb 17, 2017
94c266e
Update CHANGELOG
vmuriart Feb 17, 2017
1d583c7
Pass arbitrary .NET object as value of an attr of PyObject by dyn typ…
yagweb Feb 17, 2017
2cb6742
Add Coverity badge
vmuriart Feb 17, 2017
3212cfe
Clean-up CHANGELOG
vmuriart Feb 20, 2017
f6d176c
Standardize Python.Test fixture location
vmuriart Feb 21, 2017
c0fb3f2
Add unittest for Overflow/across AppDomains Exceptions reproduction (…
yagweb Feb 21, 2017
2871d1b
Re-order Initialize tests
vmuriart Feb 21, 2017
bd1a27e
Add documentation and ref to ReInitialize test
vmuriart Feb 21, 2017
38af8d1
Split and re-order TestPyTupleIsTupleType test
vmuriart Feb 21, 2017
e75d1c2
Skip PyTuple test with AppDomain issue
vmuriart Feb 21, 2017
04ce393
Merge branch 'embedded_tests' into pythonnet_master
vmuriart Feb 21, 2017
e7c94df
Clean-up embedded tests
vmuriart Feb 21, 2017
c99c5f2
Fix conda build log stderr->stdout
vmuriart Feb 21, 2017
5e27c67
Quiet AppVeyor pip/nuget installs
vmuriart Feb 21, 2017
cbafe1e
Allow private env:var to force conda build
vmuriart Feb 21, 2017
e753b72
Update AUTHORS
vmuriart Feb 21, 2017
3c69371
Rename TearDown to Dispose
vmuriart Feb 21, 2017
a9e2fe7
Relocate Embedded tests fixtures
vmuriart Feb 21, 2017
02a8a34
Update LICENSE year & include in recipe
vmuriart Feb 22, 2017
0e5e58e
Update conda-recipe version
vmuriart Feb 21, 2017
928717d
Add SharedAssemblyInfo & Update Assembly version
vmuriart Feb 22, 2017
5a7d297
Add .bumpversion
vmuriart Feb 22, 2017
909b7c0
Merge pull request #398 from vmuriart/bumpversion
vmuriart Feb 22, 2017
b7a3c7e
Add object overload test
vmuriart Apr 18, 2016
2cabc9f
Add object type to methodbind
vmuriart May 22, 2016
4071aa3
Add more object overload method tests
vmuriart Feb 15, 2017
8f258ac
Merge pull request #377 from vmuriart/method_object
vmuriart Feb 22, 2017
9e3193b
Update CHANGELOG
vmuriart Feb 22, 2017
b21fab9
Enable embedded_tests to Travis w. conditional filters
vmuriart Feb 21, 2017
3cb531a
Split blank DefineConstants on `*.csproj`
vmuriart Feb 22, 2017
d86880a
Update CHANGELOG
vmuriart Feb 22, 2017
edc7621
Fix PythonException GC (#400)
vmuriart Feb 23, 2017
ea44eef
Add Eval(...) and Exec(...)
yagweb Feb 17, 2017
2dfff9f
Keep RunString Public. Fix Assert.AreEqual order
vmuriart Feb 23, 2017
9bf4239
Merge pull request #389 from yagweb/add_eval
vmuriart Feb 24, 2017
e8c2294
Update CHANGELOG
vmuriart Feb 24, 2017
2b6f815
Clarify MashalAs on runtime.cs
vmuriart Feb 24, 2017
ecd7e60
Fix runtime Initialize dll nameclash
vmuriart Feb 24, 2017
012b488
Update test_sysargv
vmuriart Feb 24, 2017
faf5faf
Fix the issue of sys.argv being cleared on import clr.
filmor Feb 24, 2017
c5c8e57
improve tests.pyproj for intellisense and running tests (#395)
Feb 24, 2017
db6c1b2
Add case-sensitivity tests
vmuriart Feb 24, 2017
30be9c9
Added branching for ldd command in OSX (#406)
fractus Feb 24, 2017
b4ed645
Minor style clean-up runtime/pythonengine
vmuriart Feb 25, 2017
8ff338a
Fix Py_Main/PySys_SetArgvEx(...) UCS4/PY3 no mem
dmitriyse Feb 22, 2017
9b70892
Update CHANGELOG, remove extra MarshalAs
vmuriart Feb 25, 2017
289d29d
Merge pull request #399 from vmuriart/fix-pymain_setargv-py3ucs4
vmuriart Feb 26, 2017
9e85489
Move PythonBuildDir when not defined
vmuriart Feb 26, 2017
f2519f7
Update ARCH check
vmuriart Feb 26, 2017
cef6153
Enable TestPyTupleInvalidAppend test
vmuriart Feb 27, 2017
5070db0
Add tests/refactor existing
vmuriart Feb 27, 2017
7dba617
Set language version to 6
vmuriart Feb 27, 2017
6667669
Add ICustomMarshaler StrMarshaler
vmuriart Feb 25, 2017
d01f25f
Add ICustomMarshaler StrArrayMarshaler
vmuriart Feb 25, 2017
74440a6
Refactor Marshals
vmuriart Feb 25, 2017
e487076
Add ICustomMarshaler Utf8Marshaler
vmuriart Feb 25, 2017
ccd4521
Match PyUnicode_AsUnicode signature in UCS2/UCS4
vmuriart Feb 26, 2017
07f87de
Refactor GetManagedString
vmuriart Feb 26, 2017
edafdf2
Remove internal PyUnicode_AS_UNICODE
vmuriart Feb 26, 2017
78939c5
Refactor Encoding check
vmuriart Feb 26, 2017
01a35cb
Merge pull request #407 from vmuriart/custom_marshal
vmuriart Feb 28, 2017
7114393
Remove ExactSpelling
vmuriart Feb 24, 2017
1fef331
Remove CharSet.Ansi
vmuriart Feb 24, 2017
ef7f69f
Remove CharSet.Unicode where not needed
vmuriart Feb 24, 2017
f1aa89b
Remove CallingConvention
vmuriart Feb 24, 2017
5b3f58a
Rename Runtime field `dll` to `PythonDll`
vmuriart Feb 26, 2017
67b3181
Merge pull request #403 from vmuriart/Clean-DllImport
vmuriart Feb 28, 2017
c890691
Remove unneeded unsafe keyword
vmuriart Feb 28, 2017
59733ea
Update CHANGELOG
vmuriart Feb 28, 2017
46660fa
Add Runtime.CheckExceptionOccurred(...)
vmuriart Feb 28, 2017
4616921
Replace Py.Throw with Runtime.CheckExceptionOccurred
vmuriart Feb 28, 2017
6095de8
Whitespace clean-up Runtime
vmuriart Feb 28, 2017
c7b4c21
Apply consistent name qualification to runtime.cs
vmuriart Mar 1, 2017
6e9fed9
Unify PY3 UCS2/UCS4 unicode methods
vmuriart Mar 1, 2017
464080f
Unify PY2 UCS2/UCS4 unicode methods
vmuriart Mar 1, 2017
0fdb80a
Rename internal methods to proper Python API name
vmuriart Mar 1, 2017
423407a
Merge branch 'unify-unicode'
vmuriart Mar 1, 2017
9650e8b
Fix PY27 dll mapping in Linux/macOS
vmuriart Mar 1, 2017
044edfe
Refactor runtime's dllBase
vmuriart Mar 1, 2017
445531d
Style clean-up runtime.cs
vmuriart Mar 1, 2017
3a7d56b
Temporary disable Codecov flags
vmuriart Mar 1, 2017
5036586
Fix test_multiple_calls_to_initialize
vmuriart Mar 2, 2017
6f3f357
Fix PythonEngine.Version
vmuriart Mar 2, 2017
e200cae
Add PYTHONPATH/PYTHONHOME default value tests
vmuriart Mar 2, 2017
0cfc67a
Fix get PYTHONHOME/PYTHONPATH marshal
vmuriart Mar 2, 2017
ffe6448
Rename internal StrMarshaler to UcsMarshaler
vmuriart Mar 2, 2017
9449a04
Merge branch 'fix-getPythonPath'
vmuriart Mar 2, 2017
f4c2ca2
Unset PYTHONHOME in AppVeyor
vmuriart Mar 3, 2017
0a47802
Update conda
vmuriart Mar 3, 2017
6668ebf
Fix PythonEngine PYTHONHOME setter
vmuriart Mar 2, 2017
321aa28
Fix set PythonPath, set ProgramName
vmuriart Mar 2, 2017
365cd6e
Merge pull request #415 from vmuriart/fix_PYTHONHOME
vmuriart Mar 3, 2017
3225465
Deprecate public RunString
vmuriart Mar 3, 2017
a14ff14
Combine Py_DEBUG and PYTHON_WITH_PYDEBUG flags
vmuriart Mar 3, 2017
8fba051
Remove PYTHON_WITH_WIDE_UNICODE flag
vmuriart Mar 3, 2017
85c85f2
Refactor PY2/PY3 Marshal in/out String/Unicode
vmuriart Mar 3, 2017
895516e
Refactor runtime.cs
vmuriart Mar 3, 2017
6d08374
Merge branch 'refactor'
vmuriart Mar 4, 2017
7db41a9
Fix Py_SetPath not available in PY2
vmuriart Mar 3, 2017
563f6a6
Calculate Runtime fields before Initialization
vmuriart Mar 3, 2017
92996a1
Add timing to detect slow tests on pytest
vmuriart Mar 4, 2017
305040d
Rename test classes/files
vmuriart Mar 5, 2017
de3874c
Add PyTuple Ctor tests
vmuriart Mar 5, 2017 8000
d7777b9
Define and document Py_IncRef/Py_DecRef
vmuriart Mar 6, 2017
977ee96
Add Tests
vmuriart Mar 6, 2017
6e4cf9d
Refactor Exception checking on tested classes
vmuriart Mar 6, 2017
657d674
Clean-up Embedded tests
vmuriart Mar 6, 2017
8ce4e0e
Add PyList tests
vmuriart Mar 6, 2017
ae8e6f0
Add test for pyscript global variable casting
vmuriart Mar 7, 2017
898e13e
Clean-up README.md example
vmuriart Mar 8, 2017
7d457ef
Fix typo in README
vmuriart Mar 8, 2017
21d1636
Update CHANGELOG.md
Mar 11, 2017
c3b59db
Bump version: 2.3.0.dev1 → 2.3.0 release
vmuriart Mar 11, 2017
51ec8a4
Bump version: 2.3.0.→ 2.4.0.dev0
vmuriart Mar 11, 2017
d40a2dc
Build conda recipe on new tags
vmuriart Mar 11, 2017
4df6105
Fix numpy array and README example (#427)
vmuriart Mar 14, 2017
a94e155
Msbuild15 patch (#435)
christopherpow Mar 23, 2017
0757594
Create .mention-bot
Mar 23, 2017
c8f3756
WPF DynamicGrid python and XAML layout files (#280)
Mar 23, 2017
39e4673
Support clr.GetClrType() - as in IronPython (#433)
vivainio Mar 24, 2017
7dba105
Update .mention-bot
Mar 28, 2017
3f83e98
Update .mention-bot
Mar 28, 2017
67650a2
Re-add CallingConvention
vmuriart Apr 2, 2017
29b74c7
Allow passing None for nullable args (#460)
dhirschfeld May 10, 2017
cc48374
Updated CHANGELOG and AUTHORS (#462)
dhirschfeld May 11, 2017
d9a3666
Fixing Travis CI for mono 5.0 (#471)
dsuarezv May 24, 2017
ce14424
Implement named arguments and With semantics in C# embedding side (#461)
dsuarezv May 24, 2017
dd726df
Implements Decimal and Datetime support
AlexCatarino Jun 1, 2017
981037a
Merge branch 'master' into quantconnect
AlexCatarino Jun 1, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
8000
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ addons:
- nunit-console

install:
- pip install pycparser coverage codecov six
- pip install pycparser coverage codecov
- coverage run setup.py build_ext --inplace

script:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ init:

install:
# install for wheels & coverage
- pip install --upgrade pip wheel coverage codecov six
- pip install --upgrade pip wheel coverage codecov

# Install OpenCover. Can't put on packages.config; not Linux/Mono compatible
- .\tools\nuget\nuget.exe install OpenCover -OutputDirectory packages
Expand Down
5 changes: 1 addition & 4 deletions src/testing/arraytest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections;

namespace Python.Test
{
//========================================================================
Expand Down Expand Up @@ -318,4 +315,4 @@ public static Spam[][] EchoRangeAA(Spam[][] items)
return items;
}
}
}
}
20 changes: 9 additions & 11 deletions src/testing/callbacktest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Python.Runtime;

namespace Python.Test
{
Expand All @@ -13,32 +10,33 @@ public class CallbackTest
{
public string Call_simpleDefaultArg_WithNull(string moduleName)
{
using (Runtime.Py.GIL())
using (Py.GIL())
{
dynamic module = Runtime.Py.Import(moduleName);
dynamic module = Py.Import(moduleName);
return module.simpleDefaultArg(null);
}
}

public string Call_simpleDefaultArg_WithEmptyArgs(string moduleName)
{
using (Runtime.Py.GIL())
using (Py.GIL())
{
dynamic module = Runtime.Py.Import(moduleName);
dynamic module = Py.Import(moduleName);
return module.simpleDefaultArg();
}
}
}

//==========================================================================
// Tests calling from Python into C# and back into Python using a PyObject.
// SelfCallbackTest should be inherited by a Python class.
// SelfCallbackTest should be inherited by a Python class.
// Used in test_class.py / testCallback
//==========================================================================
public class SelfCallbackTest
{
public void Callback(Runtime.PyObject self)
public void Callback(PyObject self)
{
using (Runtime.Py.GIL())
using (Py.GIL())
((dynamic)self).PyCallback(self);
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/testing/classtest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections;

namespace Python.Test
Expand Down Expand Up @@ -61,4 +60,4 @@ public ClassCtorTest2(string v)
internal class InternalClass
{
}
}
}
3 changes: 1 addition & 2 deletions src/testing/constructortests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections;
using System.IO;

namespace Python.Test< 1023B /td>
Expand Down Expand Up @@ -50,4 +49,4 @@ public SubclassConstructorTest(Exception v)
this.value = v;
}
}
}
}
5 changes: 1 addition & 4 deletions src/testing/conversiontest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;


namespace Python.Test
{
//========================================================================
Expand Down Expand Up @@ -58,4 +55,4 @@ public string GetValue()
return value;
}
}
}
}
4 changes: 1 addition & 3 deletions src/testing/delegatetest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace Python.Test
{
//========================================================================
Expand Down Expand Up @@ -60,4 +58,4 @@ public bool CallBoolDelegate(BoolDelegate d)
return d();
}
}
}
}
14 changes: 7 additions & 7 deletions src/testing/doctest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ namespace Python.Test

// Classes with a constructor have their docstring set to the ctor signature.
// Test if a class has an explicit doc string it gets set correctly.
[DocStringAttribute("DocWithCtorTest Class")]
[DocString("DocWithCtorTest Class")]
public class DocWithCtorTest
{
public DocWithCtorTest()
{
}

[DocStringAttribute("DocWithCtorTest TestMethod")]
[DocString("DocWithCtorTest TestMethod")]
public void TestMethod()
{
}

[DocStringAttribute("DocWithCtorTest StaticTestMethod")]
[DocString("DocWithCtorTest StaticTestMethod")]
public static void StaticTestMethod()
{
}
Expand All @@ -41,17 +41,17 @@ public static void StaticTestMethod(double a, int b)
}
}

[DocStringAttribute("DocWithoutCtorTest Class")]
[DocString("DocWithoutCtorTest Class")]
public class DocWithoutCtorTest
{
[DocStringAttribute("DocWithoutCtorTest TestMethod")]
[DocString("DocWithoutCtorTest TestMethod")]
public void TestMethod()
{
}

[DocStringAttribute("DocWithoutCtorTest StaticTestMethod")]
[DocString("DocWithoutCtorTest StaticTestMethod")]
public static void StaticTestMethod()
{
}
}
}
}
4 changes: 2 additions & 2 deletions src/testing/enumtest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public enum ULongEnum : ulong
Five
}

[FlagsAttribute]
[Flags]
public enum FlagsEnum
{
Zero,
Expand All @@ -96,4 +96,4 @@ public enum FlagsEnum
Four,
Five
}
}
}
38 changes: 19 additions & 19 deletions src/testing/eventtest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ namespace Python.Test
// Supports CLR event unit tests.
//========================================================================

public delegate void TestEventHandler(object sender, TestEventArgs e);
public delegate void EventHandlerTest(object sender, EventArgsTest e);


public class EventTest
{
public static event TestEventHandler PublicStaticEvent;
public static event EventHandlerTest PublicStaticEvent;

protected static event TestEventHandler ProtectedStaticEvent;
protected static event EventHandlerTest ProtectedStaticEvent;

internal static event TestEventHandler InternalStaticEvent;
internal static event EventHandlerTest InternalStaticEvent;

private static event TestEventHandler PrivateStaticEvent;
private static event EventHandlerTest PrivateStaticEvent;

public event TestEventHandler PublicEvent;
public event EventHandlerTest PublicEvent;

protected event TestEventHandler ProtectedEvent;
protected event EventHandlerTest ProtectedEvent;

internal event TestEventHandler InternalEvent;
internal event EventHandlerTest InternalEvent;

private event TestEventHandler PrivateEvent;
private event EventHandlerTest PrivateEvent;


public static int s_value;
Expand All @@ -42,7 +42,7 @@ static EventTest()
}


public void OnPublicEvent(TestEventArgs e)
public void OnPublicEvent(EventArgsTest e)
{
if (PublicEvent != null)
{
Expand All @@ -51,7 +51,7 @@ public void OnPublicEvent(TestEventArgs e)
}


public void OnProtectedEvent(TestEventArgs e)
public void OnProtectedEvent(EventArgsTest e)
{
if (ProtectedEvent != null)
{
Expand All @@ -60,7 +60,7 @@ public void OnProtectedEvent(TestEventArgs e)
}


public static void OnPublicStaticEvent(TestEventArgs e)
public static void OnPublicStaticEvent(EventArgsTest e)
{
if (PublicStaticEvent != null)
{
Expand All @@ -69,7 +69,7 @@ public static void OnPublicStaticEvent(TestEventArgs e)
}


protected static void OnProtectedStaticEvent(TestEventArgs e)
protected static void OnProtectedStaticEvent(EventArgsTest e)
{
if (ProtectedStaticEvent != null)
{
Expand All @@ -78,12 +78,12 @@ protected static void OnProtectedStaticEvent(TestEventArgs e)
}


public void GenericHandler(object sender, TestEventArgs e)
public void GenericHandler(object sender, EventArgsTest e)
{
this.value = e.value;
}

public static void StaticHandler(object sender, TestEventArgs e)
public static void StaticHandler(object sender, EventArgsTest e)
{
s_value = e.value;
}
Expand All @@ -92,7 +92,7 @@ public static void ShutUpCompiler()
{
// Quiet compiler warnings.
EventTest e = new EventTest();
TestEventHandler f = new TestEventHandler(e.GenericHandler);
EventHandlerTest f = new EventHandlerTest(e.GenericHandler);
ProtectedStaticEvent += f;
InternalStaticEvent += f;
PrivateStaticEvent += f;
Expand All @@ -103,13 +103,13 @@ public static void ShutUpCompiler()
}


public class TestEventArgs : EventArgs
public class EventArgsTest : EventArgs
{
public int value;

public TestEventArgs(int v)
public EventArgsTest(int v)
{
this.value = v;
}
}
}
}
2 changes: 1 addition & 1 deletion src/testing/exceptiontest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ public string GetExtraInfo()
return extra;
}
}
}
}
5 changes: 1 addition & 4 deletions src/testing/fieldtest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;


namespace Python.Test
{
//========================================================================
Expand Down Expand Up @@ -54,4 +51,4 @@ public void Shutup()
public object ObjectField;
public ISpam SpamField;
}
}
}
5 changes: 1 addition & 4 deletions src/testing/generictest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections;

namespace Python.Test
{
//========================================================================
Expand Down Expand Up @@ -131,4 +128,4 @@ public static string Overloaded<Q>(int arg1, int arg2, string arg3)
return arg3;
}
}
}
}
4 changes: 1 addition & 3 deletions src/testing/globaltest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;

//========================================================================
// Supports units tests for access to types without a namespace.
//========================================================================

public class NoNamespaceType
{
}
}
3 changes: 1 addition & 2 deletions src/testing/indexertest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections;

namespace Python.Test
Expand Down Expand Up @@ -415,4 +414,4 @@ public MultiDefaultKeyIndexerTest() : base()
}
}
}
}
}
4 changes: 1 addition & 3 deletions src/testing/interfacetest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace Python.Test
{
//========================================================================
Expand Down Expand Up @@ -62,4 +60,4 @@ private interface IPrivate
{
}
}
}
}
Loading
0