
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
`pytest` uses filesystem root (`C:\`) as root dir on Windows Β· Issue #10506 Β· pytest-dev/pytest
Description:
My setup is a bit elaborate since I am using pyinstaller and running pytest from the bundled executable. Anyway, I can tell from the header that pytest is using C:\ as a rootdir and generates C:\.pytest_cache, which I would like to avoid...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Mobile Technology & AI
- DIY & Home Improvement
Content Management System {π}
What CMS is github.com built with?
Github.com employs WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
rootdir, issue, ancestor, pytest, inipath, added, root, rootdircmdarg, isfsroot, commit, references, sign, config, inicfg, ospathsplitdrivestrrootdir, type, pull, projects, pytestsrcpytestconfigfindpathspy, bcee, inifile, possiblerootdir, cwd, getcommonancestorcwd, bug, nicoddemus, navigation, pytestdev, requests, actions, security, filesystem, dir, windows, closed, determinesetup, lines, optionalstr, args, optionalpath, dirs, found, check, returns, windowspathc, backport, applied, prs, ported, current,
Topics {βοΈ}
users\\bers\\appdata\\local\\temp\\_mei138802\\project'] rootdir_cmd_arg = /users/bers/appdata/local/temp/_mei138802/project' pytest/src/_pytest/config/findpaths /code/project' pytest-dev/backport-10526 update dependency pytest personal information `pytest` issue easy issue assigned labels good activity ronnypfannschmidt added comment metadata assignees file system root type projects check returns false projects milestone running pytest def determine_setup optional[path] = inipath_ bug problem addressed type pytest config object relevant config backport applied returns windowspath filesystem root cwd = config bit elaborate bundled executable inipath_ = absolutepath raise usageerror app bundle function passes github milestone relationships root dir inicfg = load_config_dict_from_file inicfg = locate_config optional[str] sequence[str] optional[str] = dict[str union[str list[str]]]] optional[path] rootdir = inipath_ rootdir = get_common_ancestor rootdir = absolutepath '--rootdir' option assert rootdir
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:`pytest` uses filesystem root (`C:\`) as root dir on Windows
articleBody:My setup is a bit elaborate since I am using `pyinstaller` and running `pytest` from the bundled executable. Anyway, I can tell from the header that `pytest` is using `C:\` as a rootdir and generates `C:\.pytest_cache`, which I would like to avoid.
By debugging `determine_setup`
https://github.com/pytest-dev/pytest/blob/bc4e70e0485a15654aa72658668056d091a4b5dc/src/_pytest/config/findpaths.py#L175-L218
I have found that it is being called with the following parameters:
```python
inifile = None
args = ['C:\\Users\\bers\\AppData\\Local\\Temp\\_MEI138802\\project']
rootdir_cmd_arg = None
rootdir = None
config = <_pytest.config.Config object at 0x0000021A33D60490>
```
I have no relevant config in the app bundle, so the function passes via
https://github.com/pytest-dev/pytest/blob/bc4e70e0485a15654aa72658668056d091a4b5dc/src/_pytest/config/findpaths.py#L205-L208
with
```python
cwd = WindowsPath('C:/Code/project')
ancestor = WindowsPath('C:/Users/bers/AppData/Local/Temp/_MEI138802/project')
```
`rootdir = get_common_ancestor([cwd, ancestor])` returns `WindowsPath('C:/')`, but the following check returns `false` as `os.path.splitdrive(str(rootdir))[1]` is `"\\"`, not `"/"`. As a consequence, `rootdir` is *not* set to `ancestor`, but remains at `WindowsPath('C:/')`, which I believe is not intended.
TLDR: In https://github.com/pytest-dev/pytest/blob/bc4e70e0485a15654aa72658668056d091a4b5dc/src/_pytest/config/findpaths.py#L206 change `"/"` to `os.sep`.
author:
url:https://github.com/bersbersbers
type:Person
name:bersbersbers
datePublished:2022-11-17T10:43:44.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:0
url:https://github.com/10506/pytest/issues/10506
context:https://schema.org
headline:`pytest` uses filesystem root (`C:\`) as root dir on Windows
articleBody:My setup is a bit elaborate since I am using `pyinstaller` and running `pytest` from the bundled executable. Anyway, I can tell from the header that `pytest` is using `C:\` as a rootdir and generates `C:\.pytest_cache`, which I would like to avoid.
By debugging `determine_setup`
https://github.com/pytest-dev/pytest/blob/bc4e70e0485a15654aa72658668056d091a4b5dc/src/_pytest/config/findpaths.py#L175-L218
I have found that it is being called with the following parameters:
```python
inifile = None
args = ['C:\\Users\\bers\\AppData\\Local\\Temp\\_MEI138802\\project']
rootdir_cmd_arg = None
rootdir = None
config = <_pytest.config.Config object at 0x0000021A33D60490>
```
I have no relevant config in the app bundle, so the function passes via
https://github.com/pytest-dev/pytest/blob/bc4e70e0485a15654aa72658668056d091a4b5dc/src/_pytest/config/findpaths.py#L205-L208
with
```python
cwd = WindowsPath('C:/Code/project')
ancestor = WindowsPath('C:/Users/bers/AppData/Local/Temp/_MEI138802/project')
```
`rootdir = get_common_ancestor([cwd, ancestor])` returns `WindowsPath('C:/')`, but the following check returns `false` as `os.path.splitdrive(str(rootdir))[1]` is `"\\"`, not `"/"`. As a consequence, `rootdir` is *not* set to `ancestor`, but remains at `WindowsPath('C:/')`, which I believe is not intended.
TLDR: In https://github.com/pytest-dev/pytest/blob/bc4e70e0485a15654aa72658668056d091a4b5dc/src/_pytest/config/findpaths.py#L206 change `"/"` to `os.sep`.
author:
url:https://github.com/bersbersbers
type:Person
name:bersbersbers
datePublished:2022-11-17T10:43:44.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:0
url:https://github.com/10506/pytest/issues/10506
Person:
url:https://github.com/bersbersbers
name:bersbersbers
url:https://github.com/bersbersbers
name:bersbersbers
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:0
interactionType:https://schema.org/CommentAction
userInteractionCount:0
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net