[issue10572] Move test sub-packages to Lib/test

2021-11-16 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

> Do we need Lib/test/test_sqlite3/__init__.py? Would not tests in package be 
> loaded automatically?

If I remove it, the test suite is not run. Maybe another change is needed for 
autodetection to work better.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-11-01 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Do we need Lib/test/test_sqlite3/__init__.py? Would not tests in package be 
loaded automatically?

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-11-01 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 762a4dc9361f9563e158e373ba8d767b4449f23d by Erlend Egeberg 
Aasland in branch 'main':
bpo-10572: Fixup Lib/test/libregrtest/pgo.py (GH-29327)
https://github.com/python/cpython/commit/762a4dc9361f9563e158e373ba8d767b4449f23d


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-10-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +27596
pull_request: https://github.com/python/cpython/pull/29327

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-10-29 Thread miss-islington


miss-islington  added the comment:


New changeset 62bf263a775fd8b5d5841cc09be3bd53e933 by Erlend Egeberg 
Aasland in branch 'main':
bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)
https://github.com/python/cpython/commit/62bf263a775fd8b5d5841cc09be3bd53e933


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-10-29 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +27573
pull_request: https://github.com/python/cpython/pull/29304

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-10-26 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

A side-effect of keeping tests inside the package, is that they appear in the 
package contents module docstring, which may be slightly confusing to new users.

>>> import sqlite3
>>> help(sqlite3)
Help on package sqlite3:

NAME
sqlite3

DESCRIPTION

[...]

PACKAGE CONTENTS
dbapi2
dump
test (package)



Regarding history: Serhiy already moved the sqlite3 test files (see commit 
3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 of 2021-09-13). If one worries about 
needing to add the --follow switch to git log, or possibly backporting issues, 
that train already left the station:

$ git log --oneline Lib/sqlite3/test/test_dbapi.py | wc -l
   4
$ git log --follow --oneline Lib/sqlite3/test/test_dbapi.py | wc -l
  71


So, I'm +1 regarding moving the sqlite3 tests :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-07-16 Thread Brett Cannon


Brett Cannon  added the comment:

> After so long a reason came up that prevents the movement of tests of ctypes, 
> lib2to3, and idlelib (which even continues in the same folder, only the 
> nomenclature was changed)?

Time and energy.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-07-15 Thread Leonardo Freua


Leonardo Freua  added the comment:

After so long a reason came up that prevents the movement of tests of ctypes, 
lib2to3, and idlelib (which even continues in the same folder, only the 
nomenclature was changed)?

--
nosy: +Leonardofreua

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-03-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I added idlelib.idletest in May 2013 with the concurrence of Nick Coughlin, who 
also suggested 'idle_test' rather than just 'test'.  It currently has 72 files 
(66 test_xyz files for idlelib modules).

Foord's opening justification for moving package tests was "Having tests in 
Lib/test instead of inside the package makes it easier to grep the unittest 
package without grepping the tests."

I presume 'tests' refers to the unittest tests but I don't understand 'easier'. 
 Is recursive grepping really not optional for the grep he uses?  In any case, 
if Michael as package author preferred to put them in /Lib, fine.

Having package tests in the package makes it possible to grep both package code 
and tests together from an editor that allows searching all files in a single 
directory or tree.  IDLE's editor and Notepad++ are 2 examples and both have a 
recurse checkmark option off by default.  I routinely do both types of searches 
of idlelib from an IDLE editor.

I have never grepped Lib/test, but if others do, would symlinks work?

For optional packages like tkinter and idlelib, having the tests in the package 
means that tests are automatically omitted when the package is.  If they were 
moved, vendors wanting a clean test directory would have to write new code to 
omit or include package tests when the package is omitted or included.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2021-01-06 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22976
pull_request: https://github.com/python/cpython/pull/24148

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-05-25 Thread Ido Michael


Change by Ido Michael :


--
nosy:  -Ido Michael

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-05-25 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
nosy: +erlendaasland

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-22 Thread Ido Michael


Ido Michael  added the comment:

GH-18727

Only tkinter module for start.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-17 Thread Brett Cannon


Brett Cannon  added the comment:

I'm also still in favour of the change. While people may have worked around 
this that doesn't mean we need to keep forcing them to do so. People worked 
around our lack of booleans but we chose to still fix that. ;)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-16 Thread Ned Deily


Ned Deily  added the comment:

> some vendors like to leave out the tests and not having them all under 'test' 
> prevents that from working cleanly

Yeah, but presumably all the major distributors have long ago figured out how 
to do this (it's not *that* hard) and, by moving the tests now, would actually 
make work for them :) (Granted, that's also not that hard)

Losing the history of a bunch of files would be a much more serious concern, 
IMHO.  If the files can't be moved without losing history, I'de be a definite 
-1 on this change; otherwise, a meh -0.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-16 Thread Zachary Ware


Zachary Ware  added the comment:

I'm personally still in favor of the change.  This wouldn't be the first big 
movement of files in our repo and likely not the last, and I don't think 
git/GitHub's support (or lack thereof) for file moves is a good enough reason 
to not organize things better.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-16 Thread Éric Araujo

Éric Araujo  added the comment:

Yes, I recommend against this change.  Sorry for the time already spent :(

(I only named Mercurial because python-dev used it before, so I was comparing 
the behaviour of the two tools)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-16 Thread Ido Michael


Ido Michael  added the comment:

Hey Eric,

I'm not sure what you mean, you don't recommend the change in general?
Or you just don't recommend Git for this and saying I should use Mercurial 
instead?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-15 Thread Éric Araujo

Éric Araujo  added the comment:

I would advise against this for two reasons:

- git does not track renames, contrart to Mercurial, so every log/diff command 
needs to analyse files to determine if something was moved rather than deleted 
+ created; the matching can change depending on a command-line param, and git 
log needs a --follow option.

- github does not apply --follow, so history for moved files is not useful: 
https://github.com/idomic/cpython/commits/bpo-10572-testlibs/Lib/test/tkinter_test/test_tkinter/test_widgets.py
 (for some reason, annotate works: 
https://github.com/idomic/cpython/blame/bpo-10572-testlibs/Lib/test/tkinter_test/test_tkinter/test_widgets.py
 )

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-15 Thread Ido Michael


Ido Michael  added the comment:

+ Distutils is last priority

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-15 Thread Ido Michael


Ido Michael  added the comment:

Before I put more time into that, here's the strategy here:

1. Module by module migration.
2. By this order
 tkinter/test
  distutils/tests
  ctypes/tests
  lib2to3/tests
  unittest/test

*  sqlite3/test - excluded because needs more work.

Please let me know if there is a different order or more exclusions?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-01 Thread Ido Michael


Ido Michael  added the comment:

I've created a clean PR - will do it in 2 rounds:
This PR GH-18727, contains the modified test of ctypes, sqlite3 and tkinter 
modules. Once that's approved I'll deal with the other remaining 3.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-03-01 Thread Ido Michael


Change by Ido Michael :


--
pull_requests: +18084
pull_request: https://github.com/python/cpython/pull/18727

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-27 Thread Brett Cannon


Brett Cannon  added the comment:

@ned.deily the motivation is covered in Michael's initial comment; some vendors 
like to leave out the tests and not having them all under 'test' prevents that 
from working cleanly. Plus it makes the tests more discoverable.

As for any of the projects being vendored from outside the stdlib, none of them 
fall under https://www.python.org/dev/peps/pep-0360/ so it isn't a worry. Plus 
none of them are anymore to my knowledge anyway.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ned Deily


Ned Deily  added the comment:

As noted in the review of the PR, keep in mind that tests are included in an 
installed Python instance; there is a list of test directories in the main 
Makefile (Makefile.pre.in) that is used by "make install".  Any movement of 
test directories thus needs to update the Makefile and test with an installed 
Python.

That said, I'm not sure what this buys us. And are any of the moved tests 
inherited from third-party packages that we've semi-vendorized into the cpython 
repo?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ido Michael


Ido Michael  added the comment:

Moved all 6 modules tests under Lib/test/MODULE_NAME_test
Created this PR: GH-18524

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ido Michael


Change by Ido Michael :


--
pull_requests: +17901
pull_request: https://github.com/python/cpython/pull/18524

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-05 Thread Brett Cannon


Brett Cannon  added the comment:

distutils might get pulled out at some point to it's at the bottom of the 
priority list for now.

Basically move the tests for a package to under Lib/test under the proper 
subpackage name and make sure the tests didn't break due to the move. That's 
pretty much the extent of this work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-04 Thread Ido Michael


Ido Michael  added the comment:

Thanks Brett,

I'll check this out over the week.
Let's take this module for instance: Lib/distutils.

I looked on this one test file by now, it looks decoupled (test_bdist.py), 

1.What to look for
2.Once decided it's not the right path, just migrate to Lib/tests/"module" and 
make sure it runs fine?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-04 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
nosy:  -asvetlov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-03 Thread Brett Cannon


Brett Cannon  added the comment:

Someone probably needs to go through the stdlib to find which modules have 
tests outside of Lib/test/, and then figure out if there is still any 
justification for that. If there isn't then they should be moved to Lib/test.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-02-02 Thread Ido Michael


Ido Michael  added the comment:

Are there any conclusions? what needs to be done?

--
nosy: +Ido Michael

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-01-24 Thread Brett Cannon


Change by Brett Cannon :


--
versions: +Python 3.9 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2020-01-24 Thread Brett Cannon


Brett Cannon  added the comment:

In case anyone cares, this is still a thing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2016-09-08 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2016-09-08 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.6 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2014-08-08 Thread Zachary Ware

Zachary Ware added the comment:

Here's an updated patch to move the sqlite3 tests.  It's a large patch because 
it simplifies things by renaming all of the test methods from Checkxxx to 
testxxx.  The test files are also renamed to fit the usual pattern.

--
Added file: http://bugs.python.org/file36316/issue10572-sqlite3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2014-08-08 Thread Zachary Ware

Zachary Ware added the comment:

Here's a patch that moves the ctypes tests.  On this one, I remembered to patch 
Makefile.pre.in; my sqlite3 patch will need the equivalent change as well.

--
Added file: http://bugs.python.org/file36317/issue10572-ctypes.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2014-07-30 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2014-07-30 Thread Michael Foord

Michael Foord added the comment:

I still dislike moving tests around.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2014-07-30 Thread Zachary Ware

Zachary Ware added the comment:

I'm in favor of a move, especially for ctypes, sqlite3, unittest, and tkinter, 
and don't really see a reason not to move distutils and lib2to3.  The IDLE 
tests make a certain amount of sense to stay in the idlelib folder, just 
because IDLE is a special case.  I'm pretty sure that covers all of the 
packages that still have tests outside of the test package.

I think the movements should only happen on 3.5; merging forward isn't nearly 
as much of an issue here in the days of hg, and backports to 2.7 should be 
becoming fewer and farther between.

I'd be happy to take care of making the moves, if we can decide that it's worth 
doing (or if it's left up to me :).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2014-07-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we get this into 3.5 for the reasons given in msg179596 ?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-04-16 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
nosy: +zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-26 Thread Geoff Wilson

Geoff Wilson added the comment:

Thanks Ned! Attached is an update for sqlite tests with the right patch format 
(issue10572-sqlite3-2.patch).

May make sense to mention the hg diff --git format in:
http://docs.python.org/devguide/patch.html

--
Added file: http://bugs.python.org/file29249/issue10572-sqlite3-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-26 Thread Geoff Wilson

Geoff Wilson added the comment:

Attach updated patch for lib2to3 (issue10572-lib2to3-2.patch)

--
Added file: http://bugs.python.org/file29250/issue10572-lib2to3-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue10572] Move test sub-packages to Lib/test

2013-02-26 Thread Ned Deily

Ned Deily added the comment:

Geoff, thanks, it is documented elsewhere in the devguide but it should be 
mentioned there as well.  I've added a note to Issue16931.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-25 Thread Éric Araujo

Éric Araujo added the comment:

Mercurial’s diff formats are actually able to represent file creation, deletion 
and rename.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-25 Thread Geoff Wilson

Geoff Wilson added the comment:

Odd. I must be doing something wrong. My test workflow was:
1. hg mv a b
1a. modify files to resolve issues from the move
2. hg diff  issue.patch # attached
3. hg revert --all
4. patch -p1  issue.patch

Reading the hg docs more, I should have used 'hg patch issue.patch'. 
However trying that on a trivial file move, results in a delete/create still.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-25 Thread Ned Deily

Ned Deily added the comment:

Geoff, you need to use hg's optional git format diff to preserve rename info. 
 See hg help diffs.

--
nosy: +ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-24 Thread Ezio Melotti

Ezio Melotti added the comment:

 Naming of files has been kept the same in the move from
 Lib/sqlite/test, to allow for easier merging of future patches.

This should be done with hg mv -- this will also allow to change the name 
while preserving the history if that's desirable.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-24 Thread Geoff Wilson

Geoff Wilson added the comment:

The move will need to be done by someone with commit access. These patches came 
from using hg mv.

After doing the move, there is some cleanup needed in each. These changes are 
included in the attached patches.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-23 Thread Geoff Wilson

Geoff Wilson added the comment:

Patch attached to move sqlite3 tests under Lib/test, and remove 
Lib/test/test_sqlite.py.

Naming of files has been kept the same in the move from Lib/sqlite/test, to 
allow for easier merging of future patches.

--
keywords: +patch
nosy: +gmwils
Added file: http://bugs.python.org/file29204/issue10572-sqlite3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-02-23 Thread Geoff Wilson

Geoff Wilson added the comment:

Patch attached to move Lib/lib2to3/tests to Lib/test/test_lib2to3.

--
Added file: http://bugs.python.org/file29209/issue10572-lib2to3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-01-10 Thread R. David Murray

R. David Murray added the comment:

I believe that the complete list of test files still located outside of 
Lib/test are:

  tkinter/test
  distutils/tests
  ctypes/tests
  lib2to3/tests
  sqlite3/test
  unittest/test
  
That last is somewhat ironic since Michael opened the issue :).

I'm considering working on some of the uncommitted patches for sqlite3, so I 
may take on moving those tests.

--
components: +Tests
nosy: +asvetlov, benjamin.peterson
stage:  - needs patch
type: behavior - enhancement
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-01-10 Thread R. David Murray

R. David Murray added the comment:

Talked to Michael in IRC.  He isn't particularly in favor of the move of the 
unittest tests, but doesn't object if someone else wants to do it.  So, 
unassigning the issue from him.

--
assignee: michael.foord - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-01-10 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

ctypes/tests is within my area of interests and may prove to be one of the 
harder pieces.  I'll try to move it and report the results.  I have not worked 
with the rest, so unless it is truly trivial this will have to wait for another 
volunteer.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-01-10 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I honestly don't see the point of moving tests around.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2013-01-10 Thread Brett Cannon

Brett Cannon added the comment:

Two reasons for collecting all of the tests in a single location:

1) Facilitates test discovery
2) It makes packaging of CPython easier for Linux distros that prefer to leave 
the tests out of the core package

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10572] Move test sub-packages to Lib/test

2011-01-25 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Changing the title to reflect broader scope of this issue.  Json tests were 
moved to Lib/test/json_tests in r86875.

--
title: Move unittest test package to Lib/test - Move test sub-packages to 
Lib/test

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com