mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Update Python to 3.8.8 (#15278)
* update python fwlinks and remove bundle ver * start fixing path for users with python 36 * prompt user for python version upgrade * update python path after removing 3.6 * prompt users to upgrade and show pkg warning * make prompt async * remove python bundle ver from ML extension * shutdown python 3.6 before deleting * check useExistingPython before update prompt * add dont ask again option * remove 3.6 after installing 3.8 fix merge conflict * give option to remove python36 * list user installed pip packages in warning * create notebook to install pip packages * update getPythonExePath method and add comments * clean up code * add comments * pr comments * add comment * remove option to keep python36 * shutdown active servers before removing python36 * fix error removing old python w/ path change * update to 3.8.10 * restart sessions for mac/linux
This commit is contained in:
@@ -49,50 +49,50 @@ describe('Utils Tests', function () {
|
||||
should(utils.getOSPlatformId()).not.throw();
|
||||
});
|
||||
|
||||
describe('comparePackageVersions', () => {
|
||||
describe('compareVersions', () => {
|
||||
const version1 = '1.0.0.0';
|
||||
const version1Revision = '1.0.0.1';
|
||||
const version2 = '2.0.0.0';
|
||||
const shortVersion1 = '1';
|
||||
|
||||
it('same id', () => {
|
||||
should(utils.comparePackageVersions(version1, version1)).equal(0);
|
||||
should(utils.compareVersions(version1, version1)).equal(0);
|
||||
});
|
||||
|
||||
it('first version lower', () => {
|
||||
should(utils.comparePackageVersions(version1, version2)).equal(-1);
|
||||
should(utils.compareVersions(version1, version2)).equal(-1);
|
||||
});
|
||||
|
||||
it('second version lower', () => {
|
||||
should(utils.comparePackageVersions(version2, version1)).equal(1);
|
||||
should(utils.compareVersions(version2, version1)).equal(1);
|
||||
});
|
||||
|
||||
it('short first version is padded correctly', () => {
|
||||
should(utils.comparePackageVersions(shortVersion1, version1)).equal(0);
|
||||
should(utils.compareVersions(shortVersion1, version1)).equal(0);
|
||||
});
|
||||
|
||||
it('short second version is padded correctly when', () => {
|
||||
should(utils.comparePackageVersions(version1, shortVersion1)).equal(0);
|
||||
should(utils.compareVersions(version1, shortVersion1)).equal(0);
|
||||
});
|
||||
|
||||
it('correctly compares version with only minor version difference', () => {
|
||||
should(utils.comparePackageVersions(version1Revision, version1)).equal(1);
|
||||
should(utils.compareVersions(version1Revision, version1)).equal(1);
|
||||
});
|
||||
|
||||
it('equivalent versions with wildcard characters', () => {
|
||||
should(utils.comparePackageVersions('1.*.3', '1.5.3')).equal(0);
|
||||
should(utils.compareVersions('1.*.3', '1.5.3')).equal(0);
|
||||
});
|
||||
|
||||
it('lower version with wildcard characters', () => {
|
||||
should(utils.comparePackageVersions('1.4.*', '1.5.3')).equal(-1);
|
||||
should(utils.compareVersions('1.4.*', '1.5.3')).equal(-1);
|
||||
});
|
||||
|
||||
it('higher version with wildcard characters', () => {
|
||||
should(utils.comparePackageVersions('4.5.6', '3.*')).equal(1);
|
||||
should(utils.compareVersions('4.5.6', '3.*')).equal(1);
|
||||
});
|
||||
|
||||
it('all wildcard strings should be equal', () => {
|
||||
should(utils.comparePackageVersions('*.*', '*.*.*')).equal(0);
|
||||
should(utils.compareVersions('*.*', '*.*.*')).equal(0);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user